KeyDown and others...

  • Thread starter Thread starter Thomas
  • Start date Start date
T

Thomas

Hi everyone!

I can get the KeyDown, up, and other directional events in my app.
But my Ipaq allows the center of the dpad to be pressed like a button;
is there a handler for this? I can't seem to figure out how to
capture this event.

Thanks,
Tom
 
It comes through as a key press. So in the KeyDown event you can see that
it's sending an "F23" key:

private void textBox1_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
MessageBox.Show(e.KeyCode.ToString());
}
 
It appears as though an "F23" key is sent through the KeyDown event when the
D-Pad is pressed and it then sends a "Return" (which *should* also be equal
to "Enter") to the KeyDown event when it's released. If you hook into the
KeyDown event of two textboxes, set focus to the first one, press and hold
the D-Pad (at this point textBox1_KeyDown is fired with "F23"), then with
the stylus set focus to the other textbox and then release the D-Pad (at
this point textBox2_KeyDown is fired with "Return"). This seems odd...
 
Back
Top