Using Vs2003. cf1. c#. windows mobile 2003 (pocketpc)
Have added event hander in InitializeComponent()
this.KeyDown += new KeyEventHandler(this.MainForm_KeyDown);
Added method
private void MainForm_KeyDown(object sender, KeyEventArgs e)
{
MessageBox.Show("Form Level KeyDown " + e.KeyCode);
}
The same form has 3 more buttons on the screen.
Now if launched and if user presses h/w enter key then get the o/p Form
Level KeyDown Return. Works as expected.
But after launching application if one would tap on any of the on-screen
buttons using the stylus and then hit the hardware ENTER key; now the event
does not fire at all.
Have confirmed this behavior using the Debug mode. How does one make sure
the Form Level KeyDown event always fires ? Basically need to force one of
the buttons to be the default buttons when h/w keyboard enter key is pressed.
Is their a better method to do this ?
TIA