Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launching Browser

Status
Not open for further replies.

pmravdin

Programmer
Joined
Jul 10, 2002
Messages
9
Location
US
I am a beginning programmer and have written some applications that I would like to have the user be able to have launch the users browser (what ever is their default browser) and go to a specified URL by clicking a button on the form. (so that they can view updated information at that site). Could someone be so kind as to give me a code snippet that will do this. I have looked at the help files and book and I can not figure this out. Thanks for your help.
 
Try this snippet:
ShellExecute(Handle, 'open', PChar(' '', '', SW_SHOWNORMAL);

PS. Don't forget to add ShellAPI in the uses clause...


//Nordlund
 
Thank you. I will give it a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top