Solved

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

Posted on 2004-10-26
983 Views
Last Modified: 2008-01-09
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
Question by:WickedDancer
    5 Comments
     
    LVL 69

    Expert Comment

    by:Éric Moreau
    Change
    this.helpProvider1.SetHelpNavigator(this, HelpNavigator.Topic);

    to
    this.helpProvider1.SetHelpNavigator(this, HelpNavigator.KeywordIndex);
    0
     

    Author Comment

    by:WickedDancer
    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
     
    LVL 28

    Accepted Solution

    by:
    Hi WickedDancer,

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

    Regards!
    B..M
    0
     

    Author Comment

    by:WickedDancer
    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
     
    LVL 28

    Expert Comment

    by:mmarinov
    I think like you
    B..M
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Normally a window is moved by clicking on the caption bar and dragging. You may want your user to be able to move borderless forms or move a form by clicking anywhere in the form without the limitation to the caption bar. There are many ways to do i…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    931 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now