Hi guys,
I got a little thing I can't really figure out at this moment.
I have a single button that says "Remove Selected Item".
But I also have two list boxes with its own categories.
I have to be able to select something from EITHER one of the list boxes and have the "Remove Selected Item" take care of it.
There's one thing I know but it only works for one listbox at a time:
How do I get that to remove from any list box?
Thanks!
I got a little thing I can't really figure out at this moment.
I have a single button that says "Remove Selected Item".
But I also have two list boxes with its own categories.
I have to be able to select something from EITHER one of the list boxes and have the "Remove Selected Item" take care of it.
There's one thing I know but it only works for one listbox at a time:
Code:
lstListBox.Items.RemoveAt(lstListBox.SelectedIndex)
How do I get that to remove from any list box?
Thanks!