Select Contiguous Values from ListBox

  • Thread starter Thread starter geebee
  • Start date Start date
G

geebee

Hi,

I have a multiselect listbox. Users can now hold down
the Ctrl key to select more than one value. I would
liike for them to be able to hold the shift ket and move
to a value latrer down in the listbox to select all
values from the first to certain point. Does anyone
know how users can use the SHIFT key to select a range of
values in a multiselect listbox?

Thanks in advance,
geebee
 
That can be done if you set the MultiSelect property of your ListBox to
"Extended".
 
geebee said:
Hi,

I have a multiselect listbox. Users can now hold down
the Ctrl key to select more than one value. I would
liike for them to be able to hold the shift ket and move
to a value latrer down in the listbox to select all
values from the first to certain point. Does anyone
know how users can use the SHIFT key to select a range of
values in a multiselect listbox?

If they can already use Control to select multiple items then the Shift key
should already do what you want.

A ListBox has two options for selecting multiple items, Simple and
Extended. Simple doesn't support Control or Shift. You simply click on
each row one at a time to select them and click on them again to de-select
them. Extended supports the use of BOTH Control and Shift in the manner
you describe. There is no setting where Control works and Shift does not.
 
Back
Top