Hi how to display seleted item values in multi selected listbox using winforms.
can somebody give me a sample code snippet?
thanks in advance
Hi how to display seleted item values in multi selected listbox using winforms.
can somebody give me a sample code snippet?
thanks in advance
Does ListBox.SelectedItems
not do what you want?
for (object x in listBox.SelectedItems)
{
// Do something with the selected item
}
You can also use ListBox.SelectedIndices
.