Basic "Help" Question

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
 
P

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.
 
C

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.
 

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