ScrollBars Property

Applies To
TextBox, Grid

Description
Gets or sets which scroll bars should appear in a multiline TextBox control.

Usage

GGet Form.Control.ScrollBars, var  
GSet  Form.Control.ScrollBars, 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
Integer variable that will contain the value of the property.
value
Integer expression for the new value of the property.

Values
0 - None
1 - Horizontal
2 - Vertical
3 - Both
Default: None

Remarks
To use ScrollBars, the Multiline property for the TextBox control must be set to True.
To display the horizontal scroll bar, set WordWrap property to False.

See Also
TextBox, Multiline, WordWrap

Example

GSet frmMain.txtStatus.Scrollbars, SCROLLBARS_VERT