• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1017
  • Last Modified:

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
0
WickedDancer
Asked:
WickedDancer
  • 2
  • 2
1 Solution
 
É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
 
mmarinovCommented:
Hi WickedDancer,

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

Regards!
B..M
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

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now