Detecting hardware buttons

  • Thread starter Thread starter WeBe
  • Start date Start date
W

WeBe

Hi!

Anyone knows how to programmatically detect when a hardware button,
Up/Down/Next/Previous, is pressed? Since the KeyPreview property is not
available in Compact Framework I don't know how to catch it form-wide.

Regards,
Staffan
 
But what if another control has focus? In my form I have a ListView control.
When that control has focus, the Form's KeyDown event is not triggered, nor
is the ListView's KeyDown event.

Even if the ListView's KeyDown event would work (which I don't understand
why it isn't), I don't want to add code to every control's KeyDown event.

/Staffan
 
Back
Top