ListView
How to Remove Item from Dynamically growing ListView Collections with just name known..
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
seenu BPosted Jun 28, 2011, 1:59 AM
for (int i = 0; i < listBox2.SelectedItems.Count; i++)
{
listBox2.Items.Remove(listBox2.SelectedItems[i].ToString());
}
VulpesPosted Jun 24, 2011, 9:10 AM
http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.listviewitemcollection.removebykey.aspx