Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi selection list box in WinForms

I am looking for way to implement multi selection enabled list box in windows forms C#. Any suggestions? Thanks.

like image 870
eomeroff Avatar asked Jan 13 '10 20:01

eomeroff


People also ask

How do you add multiple-selection list boxes?

Place the cursor in the form where you want the multi-selection list and then go to the Controls Task Pane (View > Design Tasks > Controls). Under the Repeating and Optional section, click Multiple-Selection List Box. Configure the multi-select list box as you would a standard List Box.

What is a multiple-selection list box?

A multiple-selection list box is list of choices that looks like a scrollable list of check boxes instead of a typical list box. Users can select as many check boxes as necessary from the list.

Which property that user can select more than one item from a list box?

The SelectionMode property enables you to determine how many items in the ListBox a user can select at one time and how the user can make multiple-selections.

Which control is used for multiple item selection?

In addition, users can select multiple items by pressing and holding the CTRL key.


1 Answers

Just add a ListBox control and set the Property: SelectionMode = SelectionMode.MultiExtended

Then you can get the selected items in: ListBox1.SelectedItems

like image 107
Burnsys Avatar answered Sep 24 '22 20:09

Burnsys