How can I open my the default browser with an url?
Printable View
How can I open my the default browser with an url?
take a look at http://www.vb-world.net/demos/shellexecute/
Here is the code to do it, instead of an example :rolleyes::
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