Instead of keypress, use KeyDown to track the keycodes and as you got the F1
key, show the help file.
HTH
--
Every thing is perfect, as long as you share!!!
Don''t forget to rate the post
"Doug" wrote:
> 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
>
>
>
|