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 Command1_Click() ShellExecute Me.hwnd, "open", "www.applevb.com", vbNullString, vbNullString, 5 End Sub
用一下shellexcute或者shell!!
ShellExecute Me.hwnd, "open", "www.applevb.com", vbNullString, vbNullString, 5
End Sub