Main Menu
Knowledge Base
Product Registration
Log an Incident
Request a Feature
Search Incidents/Bug Reports

Search KB

Please note: In an effort to better serve you, we are in the process of restructuring DevCenter. In the process, we have moved many items that you may be used to finding in DevCenter over to the Main Site. If you are having trouble locating something, please try looking at the following places:

Knowledge Base Article: KB02333

HOWTO:Using the MaskInput Property

The information in this article applies to:
UltraWinEditors (v2.0.5001)
  Article Created: 

Last Updated:

Article Type
How To
Page Options
Average Rating:
5 out of 10

Rate this page
Print this page
E-mail this page
Add to Favorites


This article outlies the use of the MaskInput property.

Additional Information

In many applications, the user should be limited to inputting certain characters within an editor. The DateTimeEditor, UltraNumericEditor and UltraCurrencyEditor provide a MaskInput property which can be used to determine which characters are valid input while ignoring invalid keystrokes.
To limit the allowable characters entered into the editors, set the MaskInput property. The mask specified below will only allow numeric characters and stipulate that two decimal places be supplied. The characters used in creating the mask are consistent with Visual Basic formatting standards. For a complete list of the characters that may be used in the input mask, see Input Mask Characters below.
When setting a mask, you may also want to use the MaskDisplay property to determine how the mask is viewed or if prompt characters should be displayed.

In VB:

Me.UltraCurrencyEditor1.MaskInput = "$999,99#.##"
Me.UltraCurrencyEditor1.MaskDisplayMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeBoth

In C#:

this.ultraCurrencyEditor1.MaskInput = "$999,99#.##";
this.ultraCurrencyEditor1.MaskDisplayMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeBoth;

Consult the product Help files for characters to be used within the mask.

How would you rate the quality of this content?
Poor -----------------------------------------> Outstanding

Tell us why you rated the content this way. (optional)