associate help file with F1 key

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

Hi i have an app that i am writing and i have a help file that is called by
the help menu.

I would like to associate this help file with the F1 key but when i use the
following code, i dont get the help file up.

private void F1_keyPress(object sender, EventArgs e)
{Help.ShowHelp(this, helpfile);}

is this the correct syntax to load the helpfile? my path is ...

private const string helpfile = "..\\..\\hilda helpa.chm";

Thanks in advance.

Doug
 
Instead of keypress, use KeyDown to track the keycodes and as you got the F1
key, show the help file.

HTH
 
Back
Top