MaskedTextBox.MaskFull Property

 

Gets a value indicating whether all required and optional inputs have been entered into the input mask.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[<BrowsableAttribute(false)>]
member MaskFull : bool with get

Property Value

Type: System.Boolean

true if all required and optional inputs have been entered; otherwise, false.

You can use the MaskFull property within the MaskInputRejected event handler to determine if the user's input was rejected because there are no remaining inputs in the mask. To determine whether only required input elements have been entered, use the MaskCompleted property.

The following code example handles the MaskInputRejected event, and uses a ToolTip to alert the user if an attempt is made to enter data after all positions in the mask have been used.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: