ScrollBars Property

Top  Previous  Next

Specifies whether a Form control has a scrollbar.

Syntax

Control.ScrollBars = nType

Parameters

nType

Specifies the type of scrollbars for the control.

 

For a Form control, the following table lists settings for nType:

 

nType

Description

0

No scrollbar is shown

1

Same as 3. Guineu changes the property value to 3 when you assign this value.

2

Same as 3. Guineu changes the property value to 3 when you assign this value.

3

Automatically displays a vertical and a horizontal scrollbar when the outermost control is not fully visible.

Remarks

Applies to: Form

Compatibility

With the Form control:

 

Unlike in Visual FoxPro you can only control both, the vertical and the horizontal, scroll bar together. The size of the scrollable area does not depend on the form client area size, but on the position of the control. The right border of the right-most control defines the extension for the horizontal bar. The bottom border of the bottommost control defines the extension of the vertically scrollable area. Add an invisible control to the Form to adjust the scrollable area.