System.Windows.Forms.MaskedTextBox.PromptChar Property

Gets or sets the character used to represent the absence of user input in System.Windows.Forms.MaskedTextBox.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.DefaultValue(_)]
[System.ComponentModel.Localizable(true)]
public char PromptChar { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

MaskedTextBox.PromptChar will be displayed in System.Windows.Forms.MaskedTextBox for any mask position that the user has not yet filled in.

Use the MaskedTextBox.HidePromptOnLeave property to specify whether the prompt is displayed when System.Windows.Forms.MaskedTextBox does not have focus.

Requirements

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