CodeItBetter Programming Another VB Programming Blog

How to Navigate to an URL with the default browser

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
'Internet - How to Navigate to an URL with the default browser
Option Explicit
 
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 Const conSwNormal = 1
 
Public Sub GotoURL(URL As String)
    ShellExecute 0&, "open", URL, vbNullString, vbNullString, conSwNormal
End Sub
Filed under: Internet Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.