Could someone lead me to a tutorial on placing hyperlinks to a website on the face of a GUI???
Is it done through the label control??? Or the RTF???
Thanks...
Printable View
Could someone lead me to a tutorial on placing hyperlinks to a website on the face of a GUI???
Is it done through the label control??? Or the RTF???
Thanks...
Try this:
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
Public Const SW_SHOWMAXIMIZED = 3
Code:Private Sub Form_Load()
lblHyperlink.ForeColor = vbBlue
lblHyperlink.FontUnderline = True
End Sub
[Edited by Sc0rp on 08-27-2000 at 05:49 PM]Code:Private Sub lblHyperlink_Click()
ShellExecute ByVal 0&, "open" & vbNullString, "http://www.vb-world.net/", vbNullString, vbNullString, SW_SHOWMAXIMIZED
End Sub
You can make it more ralistic by changing the cursor to a hand. You can find it in the following path
Win98\cdsample\images\hand.cur
Orrrrrrrrr..........
if you dont have the CD or cant find it, just go here
C:\WINDOWS\CURSORS
big hands, small hands, translucent hands, etc....
A tad more complicated than inserting a link into a web page!
Think I'll continue on with what I'm doing and come back to the link thing. So much to learn...
When's recess??? ;)