Jun 25, 2003 #1 BoDGie Programmer Joined Jun 18, 2003 Messages 6 Location AU What code do i need for an onclick function with a label to open an external web browser.. like a hyperlink basically. Thanks, Trent
What code do i need for an onclick function with a label to open an external web browser.. like a hyperlink basically. Thanks, Trent
Jun 25, 2003 #2 towerbase Programmer Joined Jul 31, 2002 Messages 1,053 Location GB The following code will open up the Tek-tips page in your default browser from a button click. Code: Uses ShellApi; procedure TForm1.Button1Click(Sender: TObject); begin ShellExecute ( hInstance, 'open', pchar('[URL unfurl="true"]www.tek-tips.com'),[/URL] nil, nil, SW_NORMAL ); end; Andrew Upvote 0 Downvote
The following code will open up the Tek-tips page in your default browser from a button click. Code: Uses ShellApi; procedure TForm1.Button1Click(Sender: TObject); begin ShellExecute ( hInstance, 'open', pchar('[URL unfurl="true"]www.tek-tips.com'),[/URL] nil, nil, SW_NORMAL ); end; Andrew
Jun 25, 2003 #3 Stretchwickster Programmer Joined Apr 30, 2001 Messages 1,746 Location GB Check this recent post: thread102-581866 Hope this helps! Clive http://www.kucu.co.ukEx nihilo, nihil fit (Out of nothing, nothing comes) Upvote 0 Downvote
Check this recent post: thread102-581866 Hope this helps! Clive http://www.kucu.co.ukEx nihilo, nihil fit (Out of nothing, nothing comes)