[RESOLVED] Very Simple Question, Shell Default Browser To Url
What code do I use to open users default web browser to a webpage?
Re: Very Simple Question, Shell Default Browser To Url
Code:
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 Sub Command1_Click()
ShellExecute Me.hwnd, "open", _
"http://www.theurl.com", vbNullString, vbNullString, 1&
End Sub
Re: Very Simple Question, Shell Default Browser To Url
Quote:
Originally Posted by DigiRev
Code:
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 Sub Command1_Click()
ShellExecute Me.hwnd, "open", _
"http://www.theurl.com", vbNullString, vbNullString, 1&
End Sub
Thanks digirev :D
Re: [RESOLVED] Very Simple Question, Shell Default Browser To Url