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", "C:\aa.chm", "", App.Path, 1 End SubPrivate Sub Command2_Click() Shell "start.exe C:\aa.chm", 1 End Sub
ShellExecute Me.hwnd, "Open", "C:\aa.chm", "", App.Path, 1
End SubPrivate Sub Command2_Click()
Shell "start.exe C:\aa.chm", 1
End Sub
交个朋友,共同进步。
[email protected]