Source code berikut untuk membuat Link pada Label Visual Basic 6.0.
Buat 1 Project dengan :
1 Label
Copy source code berikut pada Form :
Buat 1 Project dengan :
1 Label
Copy source code berikut pada Form :
Private 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
Private Declare Function SetWindowPos Lib "user32" (ByVal h As Long, ByVal hb As Long, ByVal X As Long, _
ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal F As Long) As Long
Const SWP_NOMOVE = 2
Const SWP_NOSIZE = 1
Const flags = SWP_NOMOVE Or SWP_NOSIZE
Const HWND_TOPMOST = -1
Const HWND_NOTOPMOST = -2
Private Sub Label1_Click()
ShellExecute Me.hWnd, "Open", "http://Blog17Lamers.Blogspot.com", vbNullString, vbNullString, 3
End Sub