ScrollBars Property
Specifies the type of scroll bars that an EditBox control, Form object, or Grid control has. Read/write at design time; read-only at run time.
[Form.]Control.ScrollBars[= nType]
Return Value
nType
Specifies the type of scroll bars for the control or object.For EditBox controls, the following table lists the settings for nType.
nType
Description
0
None
2
Vertical (Default)
For Form objects, the following table lists the settings for nType.
nType
Description
0
None (Default)
1
Horizontal
2
Vertical
3
Both vertical and horizontal
For Grid controls, the following table lists the settings for nType.
nType
Description
0
None
1
Horizontal
2
Vertical
3
Both vertical and horizontal (Default)
Remarks
Applies To: EditBox | Form | Grid
ScrollBars is ignored for the _SCREEN system variable. For more information, see _SCREEN System Variable.
Scroll bars, if enabled, display automatically when the form, grid, or edit box contains more information than can be displayed in the space provided. The Scrollbars property setting is evaluated for a form when the form is instantiated.
Tip
If you want to control the size of the scroll bar at run time, specify a non-zero value for nType.
Note
Values of nType greater than 0 require more memory to accommodate the possible use of the SaveAs method. For more information, see SaveAs Method. To save memory, specify nType = 0.