How do I put a hyperlink on a form (with a label or button) so that when clicked it will open a webpage in the systems default browser.
I tried the "Implements Hyperlink" statement and it crashed
Thanks
Printable View
How do I put a hyperlink on a form (with a label or button) so that when clicked it will open a webpage in the systems default browser.
I tried the "Implements Hyperlink" statement and it crashed
Thanks
Forget it... I Found it
[Edited by Paul282 on 05-15-2000 at 10:56 PM]Code:Public 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
Call ShellExecute(0&, vbNullString, "http://www.somewhere.com/", vbNullString, vbNullString, vbNormalFocus)