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

3

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

4个回答

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);

}

3

2

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接