ScrollBars Property (MSHFlexGrid)

       

Returns or sets a value that determines whether an MSHFlexGrid has horizontal and/or vertical scroll bars.

Syntax

object.ScrollBars [=value]

The ScrollBars property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value An integer or constant that specifies the type of scroll bars, as described in Settings.

Settings

The settings for value are:

Constant Value Description
flexScrollNone 0 The MSHFlexGrid has no scroll bars.
flexScrollHorizontal 1 The MSHFlexGrid has a horizontal scroll bar.
flexScrollVertical 2 The MSHFlexGrid has a vertical scroll bar.
flexScrollBoth 3 The MSHFlexGrid has horizontal and vertical scroll bars. (Default)

Remarks

Scroll bars appear on an MSHFlexGrid only if its contents extend beyond its borders and value specifies scroll bars. If the ScrollBars property is set to None, the MSHFlexGrid will not have scroll bars, regardless of its contents.

Note   If the MSHFlexGrid has no scroll bars in either direction, it will not allow any scrolling in that direction, even if the user uses the keyboard to select a cell that is beyond the visible area of the control.