PDA

Click to See Complete Forum and Search --> : Opening a web page for viewing


Janitor
Dec 15th, 1999, 04:22 PM
I need a quick way of launching a user's default web browser (without necessarily knowing it) to a specific local html document. Any help would be appreciated.

smalig
Dec 15th, 1999, 04:26 PM
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 Command1_Click()

Call ShellExecute(Me.hwnd, vbNullString, "d:\MyFavoriteLocalPage.html", vbNullString, vbNullString, 0&)

End Sub

------------------
smalig
smalig@hotmail.com
http://vbcode.webhostme.com/