确定主题ID在CHM文件打开它 [英] Determine topic id to open it in CHM file

查看:459
本文介绍了确定主题ID在CHM文件打开它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

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

解决方案

您可以为您的帮助文件中定义主题ID如下:

  1. 在文本编辑器打开你的帮助项目(.hhp)。
  2. 添加【别名】部分,定义标识的主题:

      [别名]
    富= MyTopic.htm
    酒吧= SomeFolder \ AnotherTopic.htm
     

  3. 添加 [地图] 部分,并指定ID值:

      [地图]
    #定义美孚7
    #定义吧42
     

  4. 重新编译您的帮助文件。

更多资讯: 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:

  1. Open your help project (.hhp) in a text editor.
  2. Add the [ALIAS] section and define IDs for the topics:

    [ALIAS]
    Foo=MyTopic.htm
    Bar=SomeFolder\AnotherTopic.htm
    

  3. Add the [MAP] section and specify the ID values:

    [MAP]
    #define Foo 7
    #define Bar 42
    

  4. Re-compile your help file.

More info here: HTML Help - Context Help Ids.

这篇关于确定主题ID在CHM文件打开它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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