I have a textBox
where you can enter a name then you can click on a Button
to delete that item with that name in a listview
.
private void btnDelete_Click(object sender, EventArgs e)
{
foreach (ListViewItem Searchstr in listView1.Name)
{
listView1.Items.Remove(Searchstr);
}
}
Any idea on how to make this work?