So I have three listboxes, and the goal is once a user clicks on an item in one listbox and hits the delete button on the form it deletes that item, and then the items in the other 2 listboxes at the same level.
So deleting the fifth element of listbox 1 deletes the fifth element of listbox 2 and 3.
private void btnDelete_Click(object sender, EventArgs e)
{
lstBox1.Items.Remove(lstBox1.SelectedItem);
lstBox2.Items.Remove(lstBox2.SelectedItem);
lstBox3.Items.Remove(lstBox3.SelectedItem);
}
So with what I have so far it will delete a single item from a listbox, but obviously there's nothing to deal with deleting the items from the other listboxes.
Any ideas?