MaskedTextBox with negative double numbers

N

~~~ .NET Ed ~~~

I am trying to use a MaskedTexBox to accept positive and negative
DECIMAL/DOUBLE numbers.

I tried by setting the Mask to a custom mask of "0000.00" but that allows
for no negatives. I tried with "+00000.00" but the same problem.

According to the documentation there is a design variable ValidatingType.
But at least in VC# Express 2005 such property does not appear in the list
of properties at design time! So what I did was to manually set the
ValidatingType to typeof(double) in the constructor. But the same problem
persists.

Any ideas? or was this some great half-baked idea?
 

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