MaskedTextBox with negative double numbers

  • Thread starter Thread starter ~~~ .NET Ed ~~~
  • Start date Start date
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?
 
Back
Top