Added: Aug 19, 2002
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo
How to open a URL in the default browser from your VB-app?
Highlight all by clicking in box
'Declare the following in a .bas module or similar: 'Goes up to the very top of the module
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As _
String, ByVal lpParameters As String, ByVallpDirectory As String, _
ByVal nShowCmd As Long) As Long
Public Const SW_SHOWNORMAL = 1
Then use the following code To make the Shell: In the form main under browser Load
Dim a As Long
a = ShellExecute(Me.hwnd, "open", "www.oden.se/~daniel/", "", "C:",SW_SHOWNORMAL);
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.