把制作得一个CHM 帮助文件加入到了项目中,在C#中如何调用?

解决方案 »

  1.   

    System.Diagnostics.Process.Start("HELP.CHM");可以打开 HELP.CHM 文件
      

  2.   

    但是HELP.CHM不在windows下,在自己的项目中,怎么调用
      

  3.   

    System.Diagnostics.Process.Start("[CHM 文件路径]");可以通过
    // System.Environment.CurrentDirectory;
    // Application.StartupPath;    // 不包括程序名
    // Application.ExecutablePath; // 包括程序名
    来获得程序的物理路径,再找到 HELP.CHM 文件就行了
      

  4.   

    string helpfile="help.chm";
    HelpNavigator navigator = HelpNavigator.KeywordIndex;
    Help.ShowHelp(this, helpfile,navigator,索引名);