17

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

1

1 Answer 1

35

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

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

3
  • Is there a way to make this work without pressing Ctrl? I mean to select a row by just clicking on the item
    – Ozkan
    Jul 7, 2015 at 13:38
  • 2
    Yes. Override ListBox's OnClick event. Dec 2, 2015 at 8:24
  • 4
    Or, the even easier way: set SelectionMode to MultiSimple.
    – BetaKeja
    Aug 24, 2018 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.