Hi all,
Can I open a website page in a desktop application window, not in the browser?
Using the following launches the browser:
Thanks in advance,
Can I open a website page in a desktop application window, not in the browser?
Using the following launches the browser:
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
Private Sub Command1_Click()
OpenURL "http://www.vbforums.com"
End Sub
Private Sub OpenURL(URL As String)
Const SW_SHOWNORMAL = 1
ShellExecute Me.hwnd, "open", URL, 0&, 0&, SW_SHOWNORMAL
End Sub