This property returns and sets a value that indicates whether a user can make multiple selections in a ListBox control. It also indicates the type of selection the user can make.
object.MultiSelect
The following table shows the settings for the MultiSelect property.
Setting |
Description |
0 (default) | Multiple selection is not enabled. |
1 | Simple multiple selection. Clicking a mouse device 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. |
The MultiSelect property is read-only at run time.