ControlStyle Property

See Also            Applies To

Specifies the style of the textbox and listbox controls. Available at design time.

Textbox Control Settings

For the Textbox control, the settings are:

Setting Description
0 – Textbox Creates an <INPUT> tag with the TYPE=TEXT attribute on the page.
1 – TextArea Creates a <TEXTAREA> tag on the page.
w – Password Creates an <INPUT> tag with the TYPE=PASSWORD attribute on the page.

This property is mapped to the Style box on the General Tab of the Textbox Properties dialog box.

Listbox Control Settings

For the Listbox control, the settings are:

Setting Description
0 – Drop-down Creates a drop-down list box.
1 – Listbox Creates a standard list box

This property is mapped to the Style box on the General Tab of the Listbox Properties dialog box.