private void contextMenuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
string strName = e.ClickedItem.Name;
if ("delMenuItem2".Equals(strName))
{
this.listView1.Items.Remove(listView1.Items[0]);
}
}
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (ListViewItem item in listView1.SelectedItems)
{
listView1.Items.Remove(item);
}
}
here you are