
12-31-2002, 06:54 AM
|
 |
Bit Flipper
|
|
Join Date: Feb 2002
Location: The Inner Loop
Posts: 5,550
|
|
Have a look at the ShellExecute. Something like this will do the trick:
Code:
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 SW_SHOWNORMAL = 2
Private Sub lblHyperlink_Click()
'Launch the default web browser and navigate to the site
ShellExecute Me.hwnd, "open", "http://www.xtremevbtalk.com", ByVal 0&, _
"", SW_SHOWNORMAL
End Sub
A simple search of the forum pulls up a few examples as well.
Orbity
|
|