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 Long Private Const conSwNormal = 1 Private Sub Command1_Click() ShellExecute hwnd, "open", "iexplore.exe", "google.com", vbNullString, conSwNormal 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 Const conSwNormal = 1
Private Sub Command1_Click()
ShellExecute hwnd, "open", "iexplore.exe", "google.com", vbNullString, conSwNormal
End Sub我试了是可以的,不知道你是怎么个不行法
ShellExecute hwnd, "open", "http://www.google.com", vbNullString, vbNullString, vbNormal