Results 1 to 5 of 5

Thread: URL Hyperlinks on GUI Face

  1. #1
    Guest

    Question

    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...

  2. #2
    Guest
    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
    Code:
    Private Sub lblHyperlink_Click()
       ShellExecute ByVal 0&, "open" & vbNullString, "http://www.vb-world.net/", vbNullString, vbNullString, SW_SHOWMAXIMIZED
    End Sub
    [Edited by Sc0rp on 08-27-2000 at 05:49 PM]

  3. #3
    Guest
    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


  4. #4
    Guest
    Orrrrrrrrr..........
    if you dont have the CD or cant find it, just go here

    C:\WINDOWS\CURSORS

    big hands, small hands, translucent hands, etc....

  5. #5
    Guest

    Thanks guys!

    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???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width