다음을 통해 공유


TextBox.ScrollBarAlign Property (Access)

You can use the ScrollBarAlign to specify or determine the alignment of a vertical scroll bar. Read/write Byte.

Syntax

.ScrollBarAlign

A variable that represents a TextBox object.

Remarks

The ScrollBarAlign property uses the following settings.

Setting

Visual Basic

Description

System

0

Vertical scroll bar is placed on the left if the form or report Orientation property is right to left; and on the right if the form or report Orientation property is left to right.

Right

1

Aligns vertical scroll bar on the right side of the control.

Left

2

Aligns vertical scroll bar on the left side of the control.

Example

The following example aligns the vertical scroll bar on the left side of the "Country" combo box in the "International Shipping" form.

Forms("International Shipping").Controls("Country").ScrollBarAlign = 2

참고 항목

개념

TextBox Object

TextBox Object Members