怎样用在vb中用代码打开一个.chm的帮助文件

解决方案 »

  1.   

    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 Form_Load()    ShellExecute Me.hwnd, vbNullString, "c:\aa.chm", vbNullString, vbNullString,1
    End Sub
      

  2.   

    app.HelpFile="yourHelp.CHM"程序启动后,按“F1”就可以打开他,注意路径哦。或者在某个按钮Click事件中添加SendKeys "{F1}"
      

  3.   

    http://59.120.3.37/howto/500/data/testchm.zip 看这个程序