Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shift-Click and Control-Click Multi-Select List 1

Status
Not open for further replies.

RSfromCO

Programmer
May 3, 2002
149
US
Does anyone know of a good way to impliment a shift-click or control-click method of selecting multiple items in a listbox instead of it just automatically selecting multiple items with a simple click.

I would prefer that if a user clicks on one item and then clicks on another that it unselect the first item (or however were previously selected). But if the user shift-clicks or control-clicks the second item it would perform a multi-select and leave previously selected items selected.

Right now I'm just using the standard muti-select list and too many times the user expects a single click to automatically un-select anything that was previously selected.
 
How are ya RSfromCO . . .
RSfromCO said:
[blue]Does anyone know of a good way to impliment a shift-click or control-click method of selecting multiple items in a listbox instead of it just automatically selecting multiple items with a simple click.[/blue]
Referencing the listbox [blue]MultiSelect[/blue] property:
Microsoft said:
[blue][tt]The MultiSelect property uses the following settings.

Visual
Setting Basic Description
******* ****** ***********
None 0 (Default) Multiple selection isn't allowed.

Simple 1 Multiple items are selected or deselected
by clicking them with the mouse or pressing
the SPACEBAR.

Extended 2 Multiple items are selected by holding down
SHIFT and clicking them with the mouse or
by holding down SHIFT and pressing an arrow
key to extend the selection from the
previously selected item to the current
item. You can also select items by dragging
with the mouse. Holding down CTRL and
clicking an item selects or deselects that
item.[/tt][/blue]
Will [blue]Extended[/blue] do?

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
 
That's exactly what I wanted it to do. Duh! Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top