Question

Is there any way to remove item from listbox based on it's name but not index value? I would like to remove item named "Mouse" (which index # changes all the time).

Was it helpful?

Solution

listBox.Items.Delete(listbox.Items.IndexOf('Mouse'));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top