MaskedTextBox::MaskFull Property
.NET Framework (current version)
Gets a value indicating whether all required and optional inputs have been entered into the input mask.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Booleantrue 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: