Export (0) Print
Expand All
Expand Minimize

ListBox.ScrollBarAlign Property (Access)

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

expression .ScrollBarAlign

expression A variable that represents a ListBox object.

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.

For combo and list boxes, ScrollBarAlign also controls the placement of the box button above the scroll bar.

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
Show:
© 2014 Microsoft