Hi! How can you call the default browser
(Windows IE or Netscape navigator) in your application
during runtime and specify the location you want to browse?
Thanks for any help.
- I'm using VB 6.0 Enterprise Edition
Printable View
Hi! How can you call the default browser
(Windows IE or Netscape navigator) in your application
during runtime and specify the location you want to browse?
Thanks for any help.
- I'm using VB 6.0 Enterprise Edition
Look up the ShellExecute command
ShellExecute Function:
That will load the default Explorer and it will launch the url as well.Code: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
Public Const SW_SHOWNORMAL = 1
ShellExecute Me.hwnd, vbNullString, "http://www.vb-world.net", vbNullString, "c:\", SW_SHOWNORMAL