PC Review


Reply
Thread Tools Rate Thread

How to do KeyPreview in CF

 
 
Robert
Guest
Posts: n/a
 
      14th May 2005
As you know, keyPreview is not supported in CF. However, you know and I know
it is badly needed. I want to let the user press the number key to invoke
the command buttons, say, 1 for print, 2 for open file etc.

I am sure some one already asked similar question and some one perhaps
already have a solution.

Any dieas?


 
Reply With Quote
 
 
 
 
Sergey Bogdanov
Guest
Posts: n/a
 
      14th May 2005
You can implement IMessageFilter from SDF and trap WM_KEYDOWN:
http://www.opennetcf.org/library/Ope...ageFilter.html

Also see this example that demonstrates how to trap WM_KEYDOWN event and
how to suppress Up, Down keys:
http://www.sergeybogdanov.com/sample...DownFilter.zip

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com


Robert wrote:
> As you know, keyPreview is not supported in CF. However, you know and I know
> it is badly needed. I want to let the user press the number key to invoke
> the command buttons, say, 1 for print, 2 for open file etc.
>
> I am sure some one already asked similar question and some one perhaps
> already have a solution.
>
> Any dieas?
>
>

 
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
KeyPreview? José Araujo Microsoft Dot NET Compact Framework 0 14th Dec 2006 08:04 PM
KeyPreview Peter Morris [Droopy eyes software] Microsoft Dot NET Compact Framework 1 8th Jan 2006 10:08 PM
KeyPreview Robert J Microsoft Dot NET Compact Framework 2 20th Jan 2005 05:50 PM
KeyPreview? Kim D Microsoft Dot NET Compact Framework 4 6th Oct 2004 02:51 PM
KeyPreview Bug? Kaki Microsoft Dot NET Framework Forms 0 8th Jul 2003 05:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:24 AM.