ScrollBars (Grid)
This property returns and sets a value that determines whether a Grid control has horizontal scroll bars, vertical scroll bars, or both.
object.ScrollBars [= value]
Parameters
- object
Object expression that is a Grid control. - value
Integer or constant that specifies the types of scrollbar. The following table shows the settings for value.Constant Setting Description FlexScrollBarNone 0 None FlexScrollBarHorizontal 1 Horizontal FlexScrollBarVertical 2 Vertical FlexScrollBarBoth 3 Both
Remarks
Scroll bars appear on a Grid control only if the Grid control’s contents extend beyond the Grid control's borders. For example, a vertical scroll bar appears when a Grid control cannot display all its rows. If ScrollBars is set to FALSE, a Grid control does not have scroll bars, regardless of its contents.
Note that if a Grid control has no scroll bars in either direction, scrolling is not enabled in that direction, even if a user uses the keyboard to select a cell that is not in the visible area of the control.
Supported Platforms
This property is supported on the following platforms.
- H/PC Pro Edition 3.0
- P/PC Edition 1.2
- Pocket PC