Home All Groups Group Topic Archive Search About

Basic "Help" Question

Author
16 May 2006 7:21 PM
Devlei
I have added a HelpProvider to my Form, and set the HelpNavigator and
HelpKeyword in the Form's properties.

When my Form opens and I press F1, the Help activates correctly, but
nothing occurs when selecting the Help command from the Help menu.

Can someone give me an example of the code that should follow the
MenuItem_Click event in order to activate the Help.

With thanks
Dave

Author
17 May 2006 7:23 AM
Peter Macej
Use
System.Windows.Forms.Help.ShowHelp(Me, HelpProvider1.HelpNamespace)

or
System.Windows.Forms.Help.ShowHelp(Me, HelpProvider1.HelpNamespace,
HelpProvider1.GetHelpKeyword(MyControl))

to open specific topic page for control or form named MyControl.


--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code
Author
17 May 2006 8:24 AM
Cerebrus
The static method Help.ShowHelp loads the help file with Contents
showing, while the Help.ShowHelpIndex method loads the help file with
Index activated.