PDA

Click to See Complete Forum and Search --> : Open browser with url


Deju
Oct 12th, 2000, 04:18 AM
How can I open my the default browser with an url?

Mark Sreeves
Oct 12th, 2000, 04:25 AM
take a look at http://www.vb-world.net/demos/shellexecute/

Oct 12th, 2000, 06:13 AM
Here is the code to do it, instead of an example :rolleyes::

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