[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
VBFAQ_LoadAWEBPage
Back to Visual BAsic FAQ Main Page.
How to load a WEB-page in your browser
This code is used by the Programmers Heaven team to load a WEB-page into my WEB-browser.
Global declarations
Sourcecode
Call the function by using
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
VBFAQ_LoadAWEBPage
Back to Visual BAsic FAQ Main Page.
How to load a WEB-page in your browser
This code is used by the Programmers Heaven team to load a WEB-page into my WEB-browser.
Global declarations
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
Sourcecode
Public sub StartBrowser(URL As String)
'Load a WEB page into my browser
'(c) 2001 Programmers Heaven
'http://www.programmersheaven.com
If Trim(URL) <> "" Then
Call ShellExecute(0&, vbNullString, URL, _
vbNullString, "C:\", mlngMax Or mlngMin Or mlngNormal)
End If
End Sub
Call the function by using
StartBrowser "http://www.programmersheaven.com"
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
