ScrollBars Property

Applies To

Form, Text Box control.

Description

You can use the ScrollBars property to specify whether scroll bars appear on a form or in a text box control.

Setting

The ScrollBars property uses the following settings.

Setting

Description

Visual Basic

Neither (forms)
None (text boxes)

(Default for text boxes) No scroll bars appear on the form or text box.

0

Horizontal Only (forms)

Horizontal scroll bar appears on the form. Not applicable to text boxes.

1

Vertical Only (forms)
Vertical (text boxes)

Vertical scroll bar appears on the form or text box.

2

Both (forms)

(Default for forms) Vertical and horizontal scroll bars appear on the form. Not applicable to text boxes.

3


You can set this property by using the form's or control's property sheet, a macro, or Visual Basic.

For a text box, you can set the default for this property by using the default control style or the DefaultControl method in Visual Basic.

Remarks

If your form is larger than the available display window, you can use the ScrollBars property to allow the user to view the entire form.

You can use the NavigationButtons property to control record navigation.

See Also

Modal property, NavigationButtons property, PopUp property, RecordSelectors property.