Does anyone know how to get the C# Help and HelpProvider classes to work with CHM files?

Hi,

I have been having trouble getting the HelpProvider class to work with a CHM file we created using RoboHelp.  When the user hits F1, the help file comes up properly, but displays a "Page not found" error in the viewing area. I tried the following in the constructor for my form:

                  this.helpProvider1.SetShowHelp(this, true);
                  this.helpProvider1.SetHelpNavigator(this, HelpNavigator.Topic);
                  this.helpProvider1.SetHelpString(this, "RP_IG_basicinfo");

I also tried:
                  this.helpProvider1.SetShowHelp(this, true);
                  this.helpProvider1.SetHelpNavigator(this, HelpNavigator.Topic);
                  this.helpProvider1.SetHelpKeyword(this, "RP_IG_basicinfo");

Neither seems to work.  Microsoft's examples are not terribly helpful.

Thanks
WickedDancerAsked:
Who is Participating?
 
mmarinovCommented:
Hi WickedDancer,

check this link : http://www.helpware.net/mshelp2/demo2/h1xNET.htm

Regards!
B..M
0
 
Éric MoreauSenior .Net ConsultantCommented:
Change
this.helpProvider1.SetHelpNavigator(this, HelpNavigator.Topic);

to
this.helpProvider1.SetHelpNavigator(this, HelpNavigator.KeywordIndex);
0
 
WickedDancerAuthor Commented:
That doesn't work as these are not keywords that are in the index.  RP_IG_basicinfo is a help topic id.  I did some more research, and apparently HelpNavigator.Topic requires a topic filename as a parameter.  I tried that (basic_information.htm), but that still didn't work.
0
 
WickedDancerAuthor Commented:
Thanks.  I had found that one an hour ago off google, and I think it is the best link for help on this topic.
0
 
mmarinovCommented:
I think like you
B..M
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.