我有一个名为 help 的 .chm 文件,在该文件中,我的结构如下:
Introduction
-item1
-item2
Topic1
-item1
-item2
Topic2
-item1
-item2
Topic3
现在我想在我尝试过的 c# 或 vb.net 中打开 Topic1:
Help.ShowHelp(ParentForm, "Help.chm", HelpNavigator.Index, "Topic1")
Help.ShowHelp(ParentForm, "Help.chm", HelpNavigator.TableOfContents, "Topic1")
Help.ShowHelp(ParentForm, "Help.chm", HelpNavigator.Topic, "Topic1")
Help.ShowHelp(ParentForm, "Help.chm", HelpNavigator.KeywordIndex, "Topic1")
但不起作用,然后我尝试在 chm 文件中提供 Topic1 (31)的索引并尝试:
Help.ShowHelp(ParentForm, "Help.chm", HelpNavigator.Index, "31")
Help.ShowHelp(ParentForm, "Help.chm", HelpNavigator.Index, "Item1")
它给出了执行,只有工作代码是:
Help.ShowHelp(ParentForm, "Help.chm", HelpNavigator.TableOfContents, Nothing)
如何打开 Topic1 ?