Skip to content

Show help document in .chm file

pasan herath

Asked Oct 13, 2013, 11:26 PM EDT1 answer
Share
LinkedInX
  private void btnhelp_Click(object sender, EventArgs e)
        {

            Help.ShowHelp(this, "file://e:\\Testchm\\test1.chm");
        }

I have created a test1.chm file.I can show this help file using above code.
But you can see there is topics as a tree view.
I need,When I click my button i need to focus one of topic in my help file.
as example button1 click then i need to show Getting Started -> Getting help.
How I set this path to my button
   Help.ShowHelp(this, "file://e:\\Testchm\\test1.chm");



Please help.This is very useful for finish my system.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    Hi pasan,

    Here you go:

    modify your line of code to read like below.
    Help.ShowHelp(this, "c:\my_help_file.chm", HelpNavigator.TopicId, "101"); // Here "101" is the topic ID you want to set, Change it with desired value.



    Hope it helps :)

    Cheers!!
    0