Directional Pad Scrolling

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.
 
G

Guest

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.
 
D

Daniel Moth

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top