PC Review


Reply
Thread Tools Rate Thread

associate help file with F1 key

 
 
Doug
Guest
Posts: n/a
 
      8th May 2007
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2hha3JhdmFydGh5?=
Guest
Posts: n/a
 
      8th May 2007
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
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Associate chm help file with F1 key Doug Microsoft C# .NET 4 23rd Jan 2007 09:21 AM
Associate file extension with a batch file =?Utf-8?B?YmF0dGVyaWVzNGV2ZXI=?= Windows XP Customization 2 10th Oct 2006 06:30 AM
OE6 .eml file associate?? =?Utf-8?B?WmlnZ2ll?= Microsoft Windows 2000 1 5th Jun 2006 01:41 AM
Windows won't associate file? brett Windows XP General 14 14th Feb 2006 08:02 PM
How to de-associate a file type =?Utf-8?B?RGlkaQ==?= Microsoft Windows 2000 13 30th Sep 2005 08:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:09 PM.