Visual Basic: Bi-Directional Programming

RightToLeft Property (ListBox Control)

See Also    Example    Applies To

Bidirectional Features

The ListBox control has configurable alignment and reading order of list box items and automatic positioning of scroll bars.

When the RightToLeft property is set to True:

  • Reading order of list box items is RTL and items are right aligned.

  • If the list box scrolls vertically (Columns property=0) and the list area is smaller than the number of items to be displayed, a drop-down arrow and vertical scrollbar appear at the left of the list box.

  • If the list box scrolls horizontally (Columns property>0), list box items are arranged in snaking columns, filling the first column on the right, followed by subsequent columns on the left. If the list area is smaller than the number of items to be displayed, a horizontal scrollbar appears at the bottom of the list box and initial scroll box position is at the right.

When the RightToLeft property is set to False, the control behavior is the same as described in the standard ListBox control documentation.