I am trying to remove a specific item on my list (people) when button (remove) is clicked. Instead, only the display on the listview (listName) is removed. When I create another name, the previous names that I had removed are displayed on the lisview again.
public void remove(object sender, EventArgs e)
    {
        foreach (ListViewItem eachItem in listName.SelectedItems)
        {
            listName.Items.Remove(eachItem);
        }
    }
 
    