I am writing a Windows application software for WM 5.0 with CompactFramework
2.0 with C#

I have a text box derived and made it a numeric control. In the KeyPress
event I am able to suppress and just get numbers and backspace. I now wanted
a decimal input also. So add a additional If condition (as below ). It did
not work. The e.KeyCode gets a value 76 and never compares to Keys.Decimal.
Is that not right?.. I saw there was Keys.OemPeriod, which is not available
in CF.. is the decimal OEM specific?.. what is the solution ?

if (e.KeyCode == Keys.Decimal) // other chks are there to get only
numbers and backspace.


Not sure if a service will fix this.

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