将帮助文件连接到应用程序

Tav*_*usi 3 c#

我想将帮助文件(.chm)连接到我的Windows应用程序.我该怎么做?谢谢.

小智 5

试试这个

string fbPath = Application.StartupPath;
string fname = "help.chm";
string filename = fbPath + @"\" + fname;
FileInfo fi = new FileInfo(filename);
if (fi.Exists)
{
Help.ShowHelp(this, filename, HelpNavigator.Find, "");
}
else
{
MessageBox.Show("Help file Is in Progress.. ",MessageBoxButtons.OK, MessageBoxIcon.Information);

}
Run Code Online (Sandbox Code Playgroud)