Re: ~ character does not invoke KeyPress event
Sorry, but this works fine for me:
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
Debug.WriteLine(e.KeyChar.ToString());
}
Clicking shift + ~ prints on the debug window ~.
"Dan" wrote in message
news:%23cA3iFWzHHA.5992@TK2MSFTNGP02.phx.gbl...
> We use ~ as a post amble character for our mobile device scanners. I am
> trying to trap this event in the KeyPress event but pressing this key does
> not invoke this event on our CE emulator or on our CE 4.2 device itself.
> I can't trap it in the KeyDown or KeyUp events either because they just
> seem to trap the "Shift" key as you have to hold [shift] and "`" together
> to get the "~" character.
>
> Using Framework 2.0 SP1.
>
>
>
>
>
Date:Tue, 24 Jul 2007 06:22:37 +0300
Author:
|