PC Review


Reply
Thread Tools Rate Thread

Directional Pad Scrolling

 
 
=?Utf-8?B?UEI=?=
Guest
Posts: n/a
 
      27th Jul 2005
I am trying to handle the Directional Pad available on Dells and HPs. Many of
the posts here and elsewhere indicated these donot have to be registered
(like the other 4 hardware buttons by the app), and they generate the regular
KeyDown & KeyUp Events (w/ up-down key codes).
I am using .NET CF SP3 and still cannot get these events fired in my custom
control. Any ideas why this is happening? MS says in SP2 release notes that
Key events are now enabled on controls too.
The event is fired in a form but not in my custom control.

Thanks
PB.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UEI=?=
Guest
Posts: n/a
 
      28th Jul 2005
I found the problem!
Apparently, the control that I was expecting to get the KeyDown event did
not have focus. And so the event was not fired at this control.

"PB" wrote:

> I am trying to handle the Directional Pad available on Dells and HPs. Many of
> the posts here and elsewhere indicated these donot have to be registered
> (like the other 4 hardware buttons by the app), and they generate the regular
> KeyDown & KeyUp Events (w/ up-down key codes).
> I am using .NET CF SP3 and still cannot get these events fired in my custom
> control. Any ideas why this is happening? MS says in SP2 release notes that
> Key events are now enabled on controls too.
> The event is fired in a form but not in my custom control.
>
> Thanks
> PB.

 
Reply With Quote
 
Daniel Moth
Guest
Posts: n/a
 
      28th Jul 2005
Well done and thanks for the update! Just fyi, with netcf v2.0 you'll be
able to set the Form.KeyPreview property to true which could help in
scenarios like this...

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"PB" <(E-Mail Removed)> wrote in message
news:897D8694-A72A-4A50-B65E-(E-Mail Removed)...
>I found the problem!
> Apparently, the control that I was expecting to get the KeyDown event did
> not have focus. And so the event was not fired at this control.
>
> "PB" wrote:
>
>> I am trying to handle the Directional Pad available on Dells and HPs.
>> Many of
>> the posts here and elsewhere indicated these donot have to be registered
>> (like the other 4 hardware buttons by the app), and they generate the
>> regular
>> KeyDown & KeyUp Events (w/ up-down key codes).
>> I am using .NET CF SP3 and still cannot get these events fired in my
>> custom
>> control. Any ideas why this is happening? MS says in SP2 release notes
>> that
>> Key events are now enabled on controls too.
>> The event is fired in a form but not in my custom control.
>>
>> Thanks
>> PB.


 
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
RPC: bi-directional communication John Windows Vista General Discussion 0 23rd Apr 2007 07:06 PM
bi-directional 1lane Windows XP General 4 2nd Mar 2007 02:38 AM
B-directional relationships? T Payne Microsoft Access Database Table Design 12 14th Aug 2006 06:51 AM
Bi-directional printing Rover Microsoft Access Form Coding 1 7th Feb 2004 09:55 PM
Turn off Bi-Directional R2 Printers 1 19th Oct 2003 03:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:10 AM.