Browse by Tags
All Tags » MaskedTextBox » Using Controls (RSS)
Sorry, but there are no more tags available to filter with.
-
|
The MaskedTextProvider class encapsulates the mask engine functionality used by the MaskedTextBox. This class can be used to provide masking to other text entry controls. For more information, see http://msdn2.microsoft.com/en-us/library/yfth38zd
|
-
|
There is an sample that shows this. You can download it from: http://winfx.msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_fxsamples/html/ba7b4105-e562-4a4b-8890-485c8f855c69.asp
|
-
|
You need to create a class that inherits from MaskDescriptor. Also, if you want Type validation support, you'll need to implement a public static Parse method that takes a string. The MaskedTextBox sample app in the SDK shows this. See the IPv5 and...
|
-
|
When you change the Culture property on the MaskedTextBox, the Mask picker dialog will show the pre-defined masks for that culture.
|
-
|
The IsOverwriteMode property will return true if characters entered will overwrite existing characters. This property combines the value of the InsertKeyMode property with the current setting of the insert key to produce the value.
|
-
|
Set the InsertKeyMode property to InsertKeyMode.Overwrite. The default value of this property is InsertKeyMode.Default which honors the state of the insert key on the keyboard.
|
-
|
Use the MaskedTextBox's TypeValidationCompleted event. This event occurs when the MaskedTextBox loses focus and the static Parse method on the Type set into the ValidatingType proeprty is called. The IsValidInput property on the TypeValidationEventArgs...
|
-
|
Set up a binding to the Text property and then set a mask that will match your data's constraints. If there are optional characters in the data, you'll need to setup the FormatString on the Text's Binding object to always fill out those optional...
|
-
|
For more information, see http://msdn2.microsoft.com/en-us/library/wdt8exfc Masking element Description 0 Digit, required. This element will accept any single digit between 0 and 9. 9 Digit or space, optional. # Digit or space, optional. If this position...
|