Basic "Help" Question

  • Thread starter Thread starter Devlei
  • Start date Start date
D

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
 
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.
 
The static method Help.ShowHelp loads the help file with Contents
showing, while the Help.ShowHelpIndex method loads the help file with
Index activated.
 
Back
Top