鼠标指向形状(即当鼠标移到标签上时鼠标的形状,MouseIcon的值为手形,MousePointer设为99-Custom)为手掌状。 设置好控件属性后,就可以编写程序代码了。
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 Sub Label1_Click()
Call ShellExecute(Form1.hwnd, "open", "http://shadanet.com", vbNullString, vbNullString, &H0)
Call ShellExecute(Form1.hwnd, "Open", "mailto:wqrz@163.com", "", App.Path, 1)
End Sub