I am developing a small application for Motorola 9090-G using .net compact framework 2.0.
My problem is that I cannot detect keypress input in the text box. How do you detect an introductory click in a text box?
None of the three detection methods work. Interestingly, it works in ppc emulator. However, it does not work on my real hardware.
private void tbxQTY_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Return || e.KeyCode == Keys.Enter || e.KeyCode == Keys.Decimal)
{
QTYEntered();
e.Handled = true;
}
if (e.KeyData == Keys.Enter || e.KeyData == Keys.Return)
{ do something }
if (e.KeyValue == (char)13)
{ QTYEntered(); MessageBox.Show("test"); e.Handled = true; }
}
muhan source
share