先做一个Label,把它的MousePointer属性设成99,再找一个手形图标,将它的MouseIcon属性设成该图标,然后加代码: ' 邮箱 Option Explicit 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 LongPrivate Sub Label1_Click() ShellExecute Me.hwnd, "open", "mailto:[email protected]", vbNullString, vbNullString, ByVal 0& End Sub' 网页 Option Explicit 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 LongPrivate Sub Label1_Click() ShellExecute Me.hwnd, "open", "http://www.163.com", vbNullString, vbNullString, ByVal 0& End Sub
' 邮箱
Option Explicit
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 LongPrivate Sub Label1_Click()
ShellExecute Me.hwnd, "open", "mailto:[email protected]", vbNullString, vbNullString, ByVal 0&
End Sub' 网页
Option Explicit
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 LongPrivate Sub Label1_Click()
ShellExecute Me.hwnd, "open", "http://www.163.com", vbNullString, vbNullString, ByVal 0&
End Sub