bring up with a help menu item. But how can I make the help file apear when
I press the F1 key?
First you need to place HelpProvider component on your form from the
toolbox.
Then you need to set two properties on each control for which you want
F1 help:
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".
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.Lo cation 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