PasswordChar Property

Applies To
TextBox

Description
Gets or sets the character used to mask characters of a password in a single-line TextBox control.

Usage

GGet Form.Control.PasswordChar, var  
GSet  Form.Control.PasswordChar, value  
Form
Name of a form or string variable containing a form name.
Control
Name of a control or string variable containing a control name. The control must exist in the specified form.
var
String variable that will contain the value of the property.
value
String expression for the new value of the property.

Values
A string containing the character used for the mask.

Remarks
Use PasswordChar to hide the characters of a password. When the user types a character, the PasswordChar is displayed. Note that the Multiline property for the TextBox control must be set to False.

See Also
TextBox

Example

GSet frmMain.txtPassword.PasswordChar, "*"