Public 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 LongDim b As Variant b = ShellExecute(Me.hwnd, vbNullString, "http://www.sina.com.cn", vbNullString, vbNullString, 1)
给你一个示例,你另外注意下路径问题即可: ------------------------------------Private Sub Command1_Click() Shell "explorer.exe " & App.Path & "\Active.htm ", vbNormalFocus End Sub
给你一个示例,另外注意下路径问题即可: ------------------------------------------------------------------- Private Sub Command1_Click() Shell "explorer.exe " & App.Path & "\Active.htm ", vbNormalFocus End Sub
b = ShellExecute(Me.hwnd, vbNullString, "http://www.sina.com.cn", vbNullString, vbNullString, 1)
------------------------------------Private Sub Command1_Click()
Shell "explorer.exe " & App.Path & "\Active.htm ", vbNormalFocus
End Sub
-------------------------------------------------------------------
Private Sub Command1_Click()
Shell "explorer.exe " & App.Path & "\Active.htm ", vbNormalFocus
End Sub