System.Windows.Forms.MaskedTextBox.IsOverwriteMode Property

Gets a value that specifies whether new user input overwrites existing input.

Syntax

[System.ComponentModel.Browsable(false)]
public bool IsOverwriteMode { get; }

Value

Documentation for this section has not yet been entered.

Remarks

MaskedTextBox.IsOverwriteMode takes into account both the value of the MaskedTextBox.InsertKeyMode property and the state of the user's keyboard. If MaskedTextBox.InsertKeyMode is set to either InsertKeyMode.Insert or InsertKeyMode.Overwrite, MaskedTextBox.IsOverwriteMode will return false or true, respectively. If MaskedTextBox.InsertKeyMode is set to InsertKeyMode.Default, it will return the state of the INSERT key.

When MaskedTextBox.IsOverwriteMode is false, System.Windows.Forms.MaskedTextBox will reject as invalid any character entry that would result in a violation anywhere in the mask. In explanation, if inserting a character would cause a character to be shifted over into a mask position where it would not be valid, the character insertion will be rejected.

Requirements

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