Windows Develop Bookmark and Share   
 index > Windows Forms General > HelpProvider and CHM/HTM files
 

HelpProvider and CHM/HTM files

Hi, I am currently having a problem using the HelpProvider functionality with a VS2008 .NET application.

If I try to access a CHM help file like this ...

++++

Create new windows app.

Add HelpProvider.

Set HelpProvider HelpNamespace to C:\Help\MyHelpFile.CHM

Set HelpNavigator on Form to TopicId

Set HelpKeyword to help topic ID, e.g. 2

Run app.

Press F1.

Help gets displayed, showing the correct topic page as expected.

++++

... then everything works as expected. However,if I modify the program to use a corresponding HTM file (built using RoboHelp), like this ...

++++

Change the HelpProvider HelpNamespace to reference a corresponding HTM file, e.g. C:\Help\MyHelpFile.HTM

Rebuild app.

Run app.

Prtess F1.

Help gets displayed, BUT always displays the main index page. I am unable to get the help to display the correct topic page.

++++

Should this work, or are HTM files not supported in this way?

Regards.

Ron.

ron2464  Tuesday, December 09, 2008 5:21 PM
There's no notion of topic IDs in HTML.
nobugz  Tuesday, December 09, 2008 6:45 PM
There's no notion of topic IDs in HTML.
nobugz  Tuesday, December 09, 2008 6:45 PM

Hi nobugz,

Thanks for the quick response!

I think we'd better stick with CHM files as I can't seem to access anything other than themain page in an HTM file, irrespective of what HelpNavigator enumeration I use.

Thanks for your help anyway, and I'll mark this as answered.

Ron.

ron2464  Wednesday, December 10, 2008 10:44 AM

You can use google to search for other answers

Custom Search

More Threads

• Login Functionality Help
• Dynamic ContextMenuStrip Events
• using a delegate to update Winforms textbox
• Application.Run()
• how to open a pdf file from a windows form
• Streams and Files
• How to intercept WebRequest.Timeout
• How to overlap a Picturebox?
• Form closes unexpectedly
• listView column width issue