Applies to
ListBox, PictureListBox, ListView controls
Description
ExtendedSelect specifies whether users can select more than one item in a ListBox or ListView at one time. When ExtendedSelect is enabled, users can select multiple items by clicking on an item and dragging the mouse up or down to select items, using Click or Shift+Click to select a sequential group of items, or using Control+Click on multiple items. When ExtendedSelect is not enabled, users cannot select multiple items.
Usage note
If both MultiSelect and ExtendedSelect are enabled, then the behavior of ExtendedSelect takes precedence.
Usage
In a painter
To enable extended select:
-
Select the Extended Select check box on the General page of the control's property page.
In scripts
The ExtendedSelect property takes a boolean value. The following example lets the user select multiple items using extended selection techniques for a ListBox lb_1:
lb_1.ExtendedSelect = TRUE