确定主题ID在CHM文件打开它文件、主题、ID、CHM

2023-09-03 10:35:04 作者:那抹熟悉の气息

我想为我的WinForm应用程序实现的F1帮助。我已阅读本主题:

如何使用创建Windows窗体F1帮助C#

我的问题是如何找到我的话题在CHM主题标识文件?我使用HTML Help Workshop中,我已经看过了所有的HTML文件,选项,但没有找到它。谢谢你。

  Help.ShowHelp(这一点,helpfile.chm,HelpNavigator.TopicId,1234);
 

解决方案 chm文件怎么打开,小编教你怎么打开chm文件

您可以为您的帮助文件中定义主题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.