Richard,
Now you've got me confused. You're showing code for a KeyPress eventhandler, not a KeyDown eventhandler. Are you saying that you changed from using the KeyDown event to using the KeyPress event? And that it works now?
Certain of the "special" keys, like Enter, Tabs and the like, are sometimes a little more tricky to capture. I just recently learned (a week or two ago) that the KeyUp event works much better for those tricky keys. Now, I'm not talking about the Compact Framework, I haven't developed anything on Pocket PC's at all, but perhaps the same principle might apply here (using KeyUp instead).
~~Bonnie
>Apparently KeyDown does not capure a Return in PocketPC 2005 (but does in 2003)
>The code is
>private void txtRackR_KeyPress (object sender, KeyPressEventArgs e)
>
>{
>
>Keys key = (Keys)e.KeyChar;
>
>if (key == Keys.Enter)
>
>{
>
>scanRackR();
>
>
>}
>
>
>
>}
>
>And it works perfectly