KeyDown and others...

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
 
T

Tim Wilson

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());
}
 
T

Tim Wilson

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

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