Results 1 to 3 of 3

Thread: label link

  1. #1
    Guest

    Question

    how can I make a label to look like a link?

  2. #2
    Guest
    Set Label's ForeColor to Blue.
    Label1.ForeColor = vbBlue

    And use the ShellExecute api function to make a link.

    Code:
    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_SHOWNORMAL = 1
    
    
    Usage
    
    ShellExecute Me.hwnd, vbNullString, "http://www.vb-world.net", _
    vbNullString, "c:\", SW_SHOWNORMAL

  3. #3
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    also:
    make it underlines
    and make it change colour in label's mouseover event
    buzzwords are the language of fools

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