MultiSelect Property (AListBox)

Returns and sets whether a user can make multiple selections and how the multiple selections can be made in the object.

Syntax

Object.MultiSelect [ = enMultiSelect ]

The MultSelect property syntax has the following parts:

 

Name

Type

Description

Object

AListBox

AListBox control

enMultiSelect

enumAListBoxMultiSelect

An integer specifying whether a user can make multiple selections and how the multiple selections can be made.

Where

enumAListBoxMultiSelect can be one of the following:

 

Name

Value

Description

albNone

0*

Multiple selection isn't allowed.

albSimple

1

Simple multiple selection. A mouse click or pressing the SPACEBAR selects or deselects an item in the list. Arrow keys move the focus.

albExtended

2

Extended multiple selection. Pressing SHIFT and clicking the mouse or pressing SHIFT and one of the arrow keys (UP ARROW, DOWN ARROW, LEFT ARROW, and RIGHT ARROW) extends the selection from the previously selected item to the current item. Pressing CTRL and clicking the mouse selects or deselects an item in the list.

Comments

 

Example

The following statement returns whether a user can make multiple selections and how the multiple selections can be made in the AListBox:

llb1MultiSelect = lb1.MultiSelect

The following statement sets the property value to albExtended:

lb1.MultiSelect = albExtended

Applies to

AListBox

See Also

ListCount, Selected