ScrollBars Property

Object List Next Object

Defined By:
TextBox

Description:

Determines whether a multiple line text box has horizontal, vertical, or both horizontal and vertical scroll bars. Scroll bars allow users to quickly move through text.

Settings:


If Setting is... Text box has...


0 - None No scroll bars (Default). Referred to as NONE.

  1. - Horizontal Horizontal scroll bar at the bottom of the image.

  2. - Vertical Vertical scroll bar at the right side of the image.

  3. - Both Both vertical and horizontal scroll bars.

Details:

Scroll bars appear on a text box only if its contents are too wide or too long to fit in the designated area. A vertical scroll bar appears on a text box when the text entered is too wide to display in the designated area. If the text is too long, a horizontal scroll bar appears. When ScrollBars is set to 0 - None, scroll bars will not appear on the text box even if the text cannot fit in the box.

If ScrollBars is set to 0, 2, or 3 and MultiLine is set to True, the WordWrap property setting has no effect and the text automatically wraps.

Data Type: Integer (Enumerated or Boolean)

See Also:

MultiLine property, WordWrap property