确定主题ID在CHM文件打开它 [英] Determine topic id to open it in CHM file
问题描述
我想为我的WinForm应用程序实现的F1帮助。我已阅读本主题:
我的问题是如何找到我的话题在CHM主题标识文件?我使用HTML Help Workshop中,我已经看过了所有的HTML文件,选项,但没有找到它。谢谢你。
Help.ShowHelp(这一点,helpfile.chm,HelpNavigator.TopicId,1234);
您可以为您的帮助文件中定义主题ID如下:
- 在文本编辑器打开你的帮助项目(.hhp)。
-
添加
【别名】
部分,定义标识的主题:[别名] 富= MyTopic.htm 酒吧= SomeFolder \ AnotherTopic.htm
-
添加
[地图]
部分,并指定ID值:[地图] #定义美孚7 #定义吧42
-
重新编译您的帮助文件。
更多资讯: HTML帮助 - 上下文帮助id
I am trying to implemented F1 help for my WinForm application. I have read this thread:
How to create F1 help in windows forms using c#
My question is how do I find the topic id of my topic in the CHM file? I am using HTML Help Workshop, and I have looked over every HTML file and option and could not find it. Thanks.
Help.ShowHelp(this, "helpfile.chm", HelpNavigator.TopicId, "1234");
You can define topic IDs for your help file as follows:
- Open your help project (.hhp) in a text editor.
Add the
[ALIAS]
section and define IDs for the topics:[ALIAS] Foo=MyTopic.htm Bar=SomeFolder\AnotherTopic.htm
Add the
[MAP]
section and specify the ID values:[MAP] #define Foo 7 #define Bar 42
Re-compile your help file.
More info here: HTML Help - Context Help Ids.
这篇关于确定主题ID在CHM文件打开它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!