Articles in this section
Category / Section

How does the UsageMode property affect the WinForms MaskedEditBox control?

1 min read

UsageMode

The UsageMode property modifies the behavior of the MaskedEditBox as detailed below:

Normal mode: When the control is set to UsageMode of Normal, there is no change in the behavior. This is the default mode for a MaskedEditBox control.

Numeric Mode: The control internally creates two data groups when the control has been set to Numeric mode and there is one DecimalSeparator character in the mask. These groups are created such that the first group holds the Mask value before the DecimalSeparator, and the second group holds the Mask value after the DecimalSeparator. For example, if you specify the Mask to be ###.#### the first group will contain the value for the first 3 ### characters of the Mask (the Number group) and the second group (the Decimal group) will contain the 5 characters (.####). The default group alignment for the Number group will be right and the alignment for the Decimal group will be left. Please refer to the information on DataGroups in this section for more information on how this works. The MaxValue and MinValue properties are enforced only when the UsageMode is set to Numeric.

Reference link: https://help.syncfusion.com/windowsforms/maskedtextbox/mode-settings

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied