System.Windows.Forms.MaskedTextBox.AllowPromptAsInput Property

Gets or sets a value indicating whether MaskedTextBox.PromptChar can be entered as valid data by the user.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool AllowPromptAsInput { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Even when MaskedTextBox.AllowPromptAsInput is true, the prompt character must be valid for the current location in the mask in order to be accepted. For example, if MaskedTextBox.PromptChar is "*", and the current location in the mask demands the user enter a digit, entering an asterisk (*) will fail and cause the MaskedTextBox.MaskInputRejected event to occur.

The MaskedTextBox.ResetOnPrompt property takes precedence over MaskedTextBox.AllowPromptAsInput.

Requirements

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