trepid
Jan 13th, 2000, 01:51 AM
I want to put a help/register web address in the Help menu of my app. But when the user clicks on a item About..., for example, it opens the web browser to show the info. Or if the browser is already open it would open that page. I have seen other apps that use html as help, and I would like to do that.
Aaron Young
Jan 13th, 2000, 03:04 AM
Use the ShellExecute API to launch the Default Browser or use one that is already open, ie.
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub mnuWebpage_Click()
Call ShellExecute(0&, "OPEN", "http://www.vb-world.net", "", "", 1)
End Sub
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com