Directional Pad Scrolling

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.
 
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
 
Back
Top