I'm trying to catch keypress events on Windows Mobile 6.x using .NET 3.5. I have a form with buttons and other controls, and I need to catch when keys are pressed on the left, right, up and down. Unfortunately, with the approach described in MSDN:
http://msdn.microsoft.com/en-us/library/microsoft.windowsce.forms.hardwarekeys.aspx
all of these keys still move the cursor between the buttons on the form instead of triggering my event Form1_KeyDown (). (I have HardwareButtons with the corresponding Form1 control and HardwareKey).
Is there a way to catch these keypress events in C #?
Artem source
share