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 Sub Label1_Click()
On Error GoTo Errhandle
'Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE mailto:cuizm@163.com", vbMinimizedFocus
ShellExecute Me.hwnd, "open", "http:\\www.google.com", vbNullString, vbNullString, 1
Exit Sub
Errhandle:
MsgBox Err.Description & "!", vbInformation
End Sub
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 Sub Label1_Click(Index As Integer)
On Error GoTo Errhandle
'Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE mailto:cuizm@163.com", vbMinimizedFocus
ShellExecute Me.hwnd, "open", "http:\\www.google.com", vbNullString, vbNullString, 1
Exit Sub
Errhandle:
MsgBox Err.Description & "!", vbInformation
End Sub