We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How does the UsageMode property (Normal / Numeric) affect the control?


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: 1. 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.

Article ID: Published Date: Last Revised Date: Platform: Control:
1092 04/30/2011 07/10/2014 Windows Forms MaskedEditBox
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.