How do I force a user to type only two digits after the decimal point?

Posted by Gold on Stack Overflow See other posts from Stack Overflow or by Gold
Published on 2010-05-27T05:17:52Z Indexed on 2010/05/27 5:31 UTC
Read the original article Hit count: 154

Filed under:
|

How do I force a user to type only two digits after the decimal point?

For example:

100 - good
100.1 - good
10.21 - good
10.123 - bad
21.1234 - bad

I need it at entry time - in C# and Windows CE.

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-ce