MultiSelect Property

Applies To

List Box Control.

Description

You can use the MultiSelect property to specify whether a user can make multiple selections in a list box and how the multiple selections can be made.

Setting

The MultiSelect property uses the following settings.

Setting

Description

Visual Basic

None

(Default) Multiple selection isn’t allowed.

0

Simple

Multiple items are selected or deselected by choosing them with the mouse or pressing the spacebar.

1

Extended

Multiple items are selected by pressing SHIFT+CLICK or SHIFT+ARROW to extend the selection from the previously selected item to the current item. Holding down CTRL and clicking an item selects or deselects that item.

2


You can set the MultiSelect property in the list box’s property sheet, a macro, or using Visual Basic. You can also set this property in a list box’s default control style.

This property can be set in any view.

Remarks

You can use the ListIndex property to return the index for the selected item. When the MultiSelect property is set to Extended or Simple, you can use the list box’s Selected property or ItemsSelected collection to determine the items that are selected.

See Also

Column Property, ItemsSelected Collection, ListIndex Property, Selected Property.