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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to open URL from a custon menu.

Status
Not open for further replies.

tombirch

Programmer
Sep 2, 2000
16
DK
Hi
I want to add a menu item to my custom menubar that opens a webpage.
Does anyone know the code to do this?

Regards
Tom
 
Hi,

I think you can call the shell function from your menu item's click event to launch your navigator with the webpage file as a commandline argument. If it is just the URL then perhaps SendKeys will do the trick once the navigator is opened.

Have a good one!
BK
 
Thanks for your advice.
I have tried using the shell function but I don't know the path for the browser for all the PCs the database will be used on.
Is there a way to extract the path for internet explorer from the registry?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top