I want to set multiple selection in a ListBox
using c#.
For example, I have a list of values I want to set these values as selected in the ListBox
.
How can I do this?
MyListBox.SelectedItems.Add(item1);
MyListBox.SelectedItems.Add(item2);
.....
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