rfb1
asked on
How to make an button launch a URL
I only have 77 points left but they're yours if you can tell me how to program a command button to launch a URL.
In VBA there is the FollowHyperLink method
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Radler:
this errors..what is wrong?
Private Sub Command1_Click()
ShellExecute(GetDesktopWin dow, "open", "C:\awork\control.htm", NULL, NULL, SW_SHOWNORMAL)
End Sub
this errors..what is wrong?
Private Sub Command1_Click()
ShellExecute(GetDesktopWin
End Sub
ASKER
Radler:
this errors..what is wrong?
Private Sub Command1_Click()
ShellExecute(GetDesktopWin dow, "open", "C:\awork\control.htm", NULL, NULL, SW_SHOWNORMAL)
End Sub
this errors..what is wrong?
Private Sub Command1_Click()
ShellExecute(GetDesktopWin
End Sub
You can also drop the WebBrowser control on your form and code:
WebBrowser1.Navigate URL
M
WebBrowser1.Navigate URL
M
ASKER
MARK2150...
I am running VB6 but don't see a web browser control.
I am running VB6 but don't see a web browser control.
You have to load it in. <Ctrl T>, look for Microsoft Internet Controls. It'll add two icons to the toolbar. Grab the little Globe icon and drop it on the system. It's a dependency of IE4. If you don't have IE4 installed you won't have the icon. My web page has a browser based on this control:
www.cyberchute.com/rvbus/madmark
M
www.cyberchute.com/rvbus/madmark
M