Using VB.NET. I have a ListBox control that I have populated with a
list of items. The user selects one or more items from the list to
process. The best way I have found to loop through the selected items
is by:
Dim item as String
For Each item In lbItems.SelectedItems
' process the item
Next
I would like to un-select each list item after it has been processed.
The only way I have found to do that is with the SetSelected method.
But that method required the index of the item to process it. How do I
determine the ListBox index for the selected item?