.chm帮助文件 [英] .chm help files

查看:86
本文介绍了.chm帮助文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想向我的应用程序添加帮助.我使用了htm文件,然后将其转换为.chm文件.我已使用"Addi Existing Item"选项将.chm文件添加到我的应用程序中.

一切都在我的项目中,但是现在如何在应用程序中访问.chm帮助呢?就像当我单击帮助时一样,我希望它打开吗?

Hi
I am wanting to add help to my application. I used htm files, and converted then to a .chm file. I have added the .chm file to my application by using the Addi Existing Item option.

So it''s in my project, but how do I now access the .chm help in the application? Like when I click help, I want that to open?

推荐答案

如果您只需要从代码中打开.chm文件,请尝试以下操作:

If you only need to open the .chm file from code, try this:

System.Diagnostics.Process.Start("...the .chm file path goes here...");




通常,您不会将* .chm添加到您的项目中.最常见的方法是将* .chm安装到与* .exe相同的文件夹中.
然后,您可以使用.Net Framework类"System.Windows.Forms.Help"打开帮助文件:

Hi,

normally you don''t add the *.chm to your project. The most common way is to install the *.chm into the same folder as your *.exe.
You can then open the help file using the .Net Framework class "System.Windows.Forms.Help":

System.Windows.Forms.Help.ShowHelp(this, "MyHelp.chm");


您好,亲爱的,
简单
只需添加帮助提供者
并指定.chm文件路径.

例如.
< small> [标签中没有vb]</small>
[C#]
helpProvider1.HelpNamespace =& quot; C:/Program Files/H2Reg/h1help/h2reg.chm& quot ;;
helpProvider1.SetHelpNavigator(button1,HelpNavigator.Topic);
helpProvider1.SetHelpKeyword(button1,& quot; html/dynamichelp2.htm& quot;);

< strike>可以吗???</strike>
< small> [不大声喊叫]</small>
Hello dear,
Its simple
just add a help provider
and give the .chm file path.

eg.
<small>[no vb in tags]</small>
[C#]
helpProvider1.HelpNamespace = &quot;C:/Program Files/H2Reg/h1help/h2reg.chm&quot;;
helpProvider1.SetHelpNavigator(button1, HelpNavigator.Topic);
helpProvider1.SetHelpKeyword(button1, &quot;html/dynamichelp2.htm&quot;);

<strike>IS IT OK???</strike>
<small>[No shouting]</small>


这篇关于.chm帮助文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆