KeyPress don't works!

  • Thread starter Thread starter Matteo Gabella
  • Start date Start date
M

Matteo Gabella

hi, did anybody notice something wrong about keypress on buttons?
i'm using CF with vb.net on pocket pc 2002 and if i have focus on a
button and i press any key (letters, numbers, arrows) nothing
happens... none event is generated...
maybe is becuse keypreview is not supported, but if so what is the
meaning of Button1_KeyPress event?
thank you
Matteo Gabella
 
The latest service pack for .NET CF (SP2) has fixed this. So I understand.

Andrew
 
Yes, he's correct. Except it was never a bug. In SP2, they added the
Control.KeyPress/Up/Down events to the controls. Note that you may already
have it in your Visual Studio .Net 2003 (depends on your updates). You will
not see this in the properties for your control, you'd have to manually code
it in (at least, I did).

Thanks,
Jay Ongg
 
Back
Top