Chapter 9 - VB.Net by Schneider
6
Removing Items from a List
Box
•
To delete an item at a given location:
•
lstBox.Items.RemoveAt(n)
•
To delete the first occurrence of an item:
•
lstBox.Items.Remove(
str
)
•
To remove everything from a list box:
•
lstBox.Items.Clear()