Home All Groups Group Topic Archive Search About

VB Program - CHM help integration

Author
27 Sep 2006 10:00 AM
al jones
I have the program, I have the help file.  I've drug a helpprovider into
the project - now I'm not sure what to put into the properties to make the
connection.  Does anyone know of a tutorial on how to actually integrate
them.  I thought I saw the obvious but all I ever brin up is the first
page.

//al

Author
29 Sep 2006 8:16 AM
al jones
On Wed, 27 Sep 2006 10:00:38 GMT, al jones wrote:

> I have the program, I have the help file.  I've drug a helpprovider into
> the project - now I'm not sure what to put into the properties to make the
> connection.  Does anyone know of a tutorial on how to actually integrate
> them.  I thought I saw the obvious but all I ever bring up is the first
> page.
>
> //al

Bump - please, some ideas .... //al
Author
29 Sep 2006 8:31 AM
Peter Macej
If I understand, you want to assign a help topic to each control on your
form. So when you press F1, you'll get the proper help for selected control.

You need to set two properties on each control:
1. HelpKeyword property to HTML file name of the topic to be opened in
your compiled CHM file, e.g. myTopic.htm
2. HelpNavigator property to "Topic".

If you want to open specified topic from menu or "Help" button, just call:
System.Windows.Forms.Help.ShowHelp(Me, HelpProvider1.HelpNamespace,
"myTopic.htm")

Don't forget to specify the absolute full path to the CHM file on
program startup. Note that the system doesn't look in application's
folder. Use something like:
HelpProvider1.HelpNamespace = IO.Path.Combine(appPath, "myHelpFile.chm")

and use System.Reflection.Assembly.GetExecutingAssembly.Location to get
appPath

--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
..NET and ASP .NET code
Author
29 Sep 2006 8:30 PM
al jones
On Fri, 29 Sep 2006 10:31:27 +0200, Peter Macej wrote:

Show quoteHide quote
> If I understand, you want to assign a help topic to each control on your
> form. So when you press F1, you'll get the proper help for selected control.
>
> You need to set two properties on each control:
> 1. HelpKeyword property to HTML file name of the topic to be opened in
> your compiled CHM file, e.g. myTopic.htm
> 2. HelpNavigator property to "Topic".
>
> If you want to open specified topic from menu or "Help" button, just call:
> System.Windows.Forms.Help.ShowHelp(Me, HelpProvider1.HelpNamespace,
> "myTopic.htm")
>
> Don't forget to specify the absolute full path to the CHM file on
> program startup. Note that the system doesn't look in application's
> folder. Use something like:
> HelpProvider1.HelpNamespace = IO.Path.Combine(appPath, "myHelpFile.chm")
>
> and use System.Reflection.Assembly.GetExecutingAssembly.Location to get
> appPath

I've looked at and tried so many ubsuccessful combinations I was getting
real disfusted.  Have arm in casr at the moment - surgery tiday - so I'll
try it "soon?" and get back.  Thanks //al