This project has moved and is read-only. For the latest updates, please go here.

How to mask the MaskedTextBox?

Oct 11, 2011 at 12:22 PM

I'm trying to use the masked text box for formatted double entries, but I'm puzzeling with the mask definition.

I would like to enter numbers between 1.0 and 100.0. How must I define the mask to be able to do so (without required spaces)?

By the way, nice job. Please continue. Kind Regards

Oct 11, 2011 at 2:35 PM

The mask will always have spaces inplace of the missing mask characters.  If you want to limit the value entered I suggest using the DoubleUpDown control.  You can apply a FormatString to the value as well.

Oct 11, 2011 at 3:03 PM

Thanks so far for the fast answer. That's what I also thought, but then I must invisble the arrows (which is currently not possible, or?).

Oct 11, 2011 at 3:04 PM

Yes it is possible.  Please read the documentation:

Look for a property called ShowButtonSpinners.

Oct 11, 2011 at 3:08 PM

That's it. Thanks again.