I'm trying to delete a specific item from multiple listBoxes. I've created a ContextMenuStrip which contains a Delete Button.
I can delete the listbox item by clicking a right click on the mouse and pressing the delete button on the ContextMenuStrip. But I would be happy to know if I can do it on multiple Listboxes.
This it the writing button code:
listBox1.Items.Add("Hello");
this it the delete button code:
listBox1.Items.Remove(listBox1.SelectedItem);
listBox1.Refresh();