Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleMake a link label that opens a Web page in Visual Basic 6
DescriptionThis example shows how to make a link label that opens a Web page in Visual Basic 6
Keywordslink label, LinkLabel, Visual Basic, Web
CategoriesControls, Internet, API
 
Make a label with the desired ForeColor, MousePointer, and font. When the user clicks on the link, use ShellExecute to open the Web page.
 
' Open the Web page.
Private Sub lblLink_Click()
    ShellExecute ByVal 0&, "open", _
        "http://www.vb-helper.com", _
        vbNullString, vbNullString, _
        SW_SHOWMAXIMIZED
End Sub
 
 
Copyright © 1997-2006 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated