How do you get your program to launch a html file on the computer in the default browser? because I want to make my help file for my program a html file rather than a help file this time, and can't work out how to launch it.
Printable View
How do you get your program to launch a html file on the computer in the default browser? because I want to make my help file for my program a html file rather than a help file this time, and can't work out how to launch it.
This will run all files with their assosiated app, like html files with ie...:)
Code: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
Sub Runfile(file As String)
lngResult = ShellExecute(hwnd, "Open", file, "", "", vbNormalFocus)
End Sub