Spread WinForms 15
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcTextBox Class / PasswordChar Property


In This Topic
PasswordChar Property (GcTextBox)
In This Topic
Gets or sets the character used as a placeholder for the characters typed by the user.
Syntax
'Declaration
 
Public Property PasswordChar As Char
 
'Usage
 
Dim instance As GcTextBox
Dim value As Char
 
instance.PasswordChar = value
 
value = instance.PasswordChar

Property Value

The character used to mask characters entered in a single-line control. Set the value of this property to 0 (character value) if you do not want the control to mask characters as they are typed. The default value is 0 (character value).
Remarks

The PasswordChar can be used to create a password field in a dialog box. Although you can use any SBCS character, most Windows-based applications use the asterisk (*) (Chr(42)).

This property does not affect the Text property. Text contains exactly what the user types or what was set from code. Setting the PasswordChar to 0, which is the default, displays the actual text in the control.

See Also