views:

535

answers:

1

Hello,

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).

+11  A: 
listBox.Items.Delete(listbox.Items.IndexOf('Mouse'));
Mason Wheeler