Sure. Put the URL in a label and click it.
[tt]
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
Const SW_SHOWNORMAL = 0
Private Sub Label1_MouseUp(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
RetVal = ShellExecute(Me.hwnd, vbNullString, _
Label1.Caption, vbNullString, "c:\", SW_SHOWNORMAL)
End Sub
[/tt]
A semicolon will appear at the end of the "Label1.Caption" line above. Don't include that in your code. It's a Tek-Tips artifact.
Alt255@Vorpalcom.Intranets.com
"If you can get people to ask the wrong questions, they'll never find the right answers."[tt]
Thomas Pynchon[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.