KeyPress don't works!

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
 
A

Andrew McGrath

The latest service pack for .NET CF (SP2) has fixed this. So I understand.

Andrew
 
J

JO

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
 

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