Add chm file to help menu

G

gordon

Hi

I have an app that i have written a chm help file for.

What is the best way to associate that with my help menu and the F1 key.

I have added the file to the project already, just not sure of the best way
to call it. I have tried
private void helpaHelpToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("hilda helpa.chm");
}

Is this the best way to call the help file?

Thanks

Doug
 
D

Dave Sexton

Hi Doug,

To show the help programmatically simply call the static Help.ShowHelp
method on the Help class:

Help Class
http://msdn2.microsoft.com/en-us/library/system.windows.forms.help.aspx

To have a menu item display the help assign its shortcut to F1. In the
event handler you posted call Help.ShowHelp.

You can use the HelpProvider component to associate context-sensitive help
with your controls:

Windows Forms Programming
HelpProvider Component Overview (Windows Forms)
http://msdn2.microsoft.com/en-us/library/s3ztx0at.aspx
 

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