用System.Windows.Forms名字空间下的Help类,它封装了HTMLHelp 1.0的引擎.
使用如下:
const string helpFile = "soapBroker.chm";
FileInfo fi = new FileInfo(helpFile);
if(fi.Exists)
{
if(sender == mnuHelpContent)
{
Help.ShowHelp(this, helpFile);
}
else if(sender == mnuHelpIndex)
{
Help.ShowHelpIndex(this, helpFile);
}
else if(sender == mnuHelpSearch)
{
Help.ShowHelp(this, helpFile, HelpNavigator.Find, "");
}
}
else
{
MessageBox.Show("未找到帮助文件!");
}
或者用System.Diagnostics 命名空间下的Process类启动一个新的进程。
Process.Start("YourHelp.chm");
使用如下:
const string helpFile = "soapBroker.chm";
FileInfo fi = new FileInfo(helpFile);
if(fi.Exists)
{
if(sender == mnuHelpContent)
{
Help.ShowHelp(this, helpFile);
}
else if(sender == mnuHelpIndex)
{
Help.ShowHelpIndex(this, helpFile);
}
else if(sender == mnuHelpSearch)
{
Help.ShowHelp(this, helpFile, HelpNavigator.Find, "");
}
}
else
{
MessageBox.Show("未找到帮助文件!");
}
或者用System.Diagnostics 命名空间下的Process类启动一个新的进程。
Process.Start("YourHelp.chm");
解决方案 »
- 求各位大哥帮忙我这个没货的专科生“如何给datagridview里面的combobox写事件”
- asp.net局部刷新updatepanel哪里有问题?
- 在项目中添加数据集时,可不可以使用参数
- ArrayList数组中 怎样在最前面加一个元素?
- 简单问题求救
- 请问我已经有一个.reg文件,我想执行这个文件,可以用process总是弹出一个询问对话框,问怎样能不出现对话框呢?
- datagrid中加入checkbox取得checkbox的值 屏蔽一些列
- 请问如何通过代码实现终端机上的剩余电量
- wince下实现蓝牙搜索与连接
- 如果 VC# 编译的文件不能在没有安装VS。NET 的电脑上运行,那 VC# 还有什么用(进来者都有分)
- Crystal Reports 9 高级版.NET升级版
- 怎样下载mms://wm.microsoft.com/ms/china/seminar/w2003/launch/17.asf这样的东西
只需要设置startInfo就可以了this.process1.StartInfo.FileName = "G:\\AoxSolution\\ClmsWinClient\\hlp.chm";