Hi!
I'm searching for a way to delete an Item from a collection in a list box...
Listbox1.Items.Add(Textbox1.Text)
Listbox2.Items.Add(Textbox2.Text)
Listbox3.Items.Add(Textbox3.Text)
Adding an item in a listbox is easy, but deleting it, the way I want it to.. T_T nah! dunno.. or maybe i'm just plain stupid.
I want the user to be able to delete an Item based on what he clicked. I found this code, but this is only if you know what will be the items in the collection:
object.Remove({Index | Key})
can anyone suggest a method on how to do it?