VB Program - CHM help integration

A

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
 
A

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 bring up is the first
page.

//al

Bump - please, some ideas .... //al
 
P

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
 
A

al jones

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top