I am looking for way to implement multi selection enabled list box in windows forms C#. Any suggestions? Thanks.
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.
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.
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.
In addition, users can select multiple items by pressing and holding the CTRL key.
Just add a ListBox
control and set the Property: SelectionMode = SelectionMode.MultiExtended
Then you can get the selected items in: ListBox1.SelectedItems
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With