|
-
May 11th, 2008, 12:54 PM
#1
Thread Starter
Member
[RESOLVED] Very Simple Question, Shell Default Browser To Url
What code do I use to open users default web browser to a webpage?
-
May 11th, 2008, 01:16 PM
#2
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
-
May 11th, 2008, 01:33 PM
#3
Thread Starter
Member
Re: Very Simple Question, Shell Default Browser To Url
 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
-
May 11th, 2008, 01:52 PM
#4
Re: [RESOLVED] Very Simple Question, Shell Default Browser To Url
You're welcome.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|