|
|
Title | Make a link label that opens a Web page in Visual Basic 6 |
Description | This example shows how to make a link label that opens a Web page in Visual Basic 6 |
Keywords | link label, LinkLabel, Visual Basic, Web |
Categories | Controls, 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
|
|
|
|
|
|