This documentation is archived and is not being maintained.

Visual Basic Reference

Visual Studio 6.0

MultiSelect Property

See Also    Example    Applies To

Returns or sets a value indicating whether a user can make multiple selections in a FileListBox or ListBox control and how the multiple selections can be made. Read only at run time.

Syntax

object.MultiSelect

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Settings

The MultiSelect property settings are:

Setting Description
0 (Default) Multiple selection isn't allowed.
1 Simple multiple selection. A mouse click or pressing the SPACEBAR selects or deselects an item in the list. (Arrow keys move the focus.)
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.

Show: