Search code examples
c#.netchmhelpfile

List all topics from a CHM file


I am trying to get a CHM file to open to a specific topic using C#.

I have tried using

Help.ShowHelp(this, path, HelpNavigator.Topic, "TopicTitle");

but it doesn't find the page. I must not be keying in the topic title correctly. Is there a way that I can programatically retrieve all of the topics from a CHM file so that I can see what they are?


Solution

  • No, the HtmlHelp API function is far too primitive to support enumerating topics. You could use the 7-zip file manager to look inside the .chm file. Right-click the file and choose "Open Inside". Or use the help authoring tool that was used.