When you want a user to enter a password on the form, add a password field to the form. A password field is just a one-line text box. When a user types in this field, most Web browsers will display the password as asterisks to protect confidentiality.
Property | Function |
---|---|
Direction | Read-only. Specifies the value of the Direction property of the attribute associated with the PasswordField object. |
Id | Read-only. By default, automatically generated. Id="PasswordField1" for the first inserted PasswordField, Id="PasswordField2" for the second, and so on. |
Length | Read-only. Specifies the Length of the attribute associated with the PasswordField object. |
Name | Read-only. Specifies the name of the attribute associated with the PasswordField object. |
Primitive | Read-only. Specifies the value of the Primitive property of the attribute associated with the PasswordField object. |
BackgroundColor | Specifies a background color for the object. Select a color from one of the tabs in the drop-down list. Note that you can specify a custom color. If you change this value, you can restore the default value specified for the parent object by right-clicking the property and clicking Reset on the context menu. |
BorderStyle | Specifies a style to control the border of the container that surrounds the object. Options are None, FixedSingle, or Fixed3D or UnderBar. When the property is set to None, the selected control appears without a border. When the property is set to FixedSingle, the selected control has a single line border. When the property is set to Fixed3D, the border of the selected control has a three-dimensional appearance. When the property is set to UnderBar, only the bottom line appears for the selected control. The other three border lines do not appear. |
ControlType | Specifies PasswordField as the type of object added to the form. To change the ControlType, choose from the list of available types. |
Font | Specifies font attributes that are applied directly to the text appearing in the object. If you change this value, you can restore the default value specified for the parent object by right-clicking the property and clicking Reset on the context menu. |
ForegroundColor | Specifies a foreground color for the object. Select a color from one of the tabs in the drop-down list. Note that you can specify a custom color. If you change this value, you can restore to the default value specified for the parent object by right-clicking the property and clicking Reset on the context menu. |
Location | Specifies the point in pixels that represents the upper-left corner of the object relative to the upper-left corner of its container as an X and Y location. |
Read-only | Specifies whether the content of the object is read-only. |
Size | Specifies the size of the object representing the height and width in pixels. |
TabIndex | Specifies the index that defines the tab order for the object. |
TextAlign | Specifies whether the text in the object is left-aligned, right-aligned, center-aligned, or justified. |
ToolTip | Specifies an optional tooltip to appear when the user at runtime hovers the mouse over a control in Winforms. To view the tooltip in the Presentation Client, the user has to hover over the control and press the F1 key. This tooltip is visible only at runtime. |
Value | Specifies the value to be displayed in the field. This is the value, which is returned to the application when a transaction occurs at runtime. |