I need my game to delete the item selected on the listbox when the user presses a button.
I have tried something simalar to this:
Ã, Ã, int number = list.SelectedIndex;
Ã, Ã, Ã, Ã, list.RemoveItem(number);
When I run the game it says invalid index
Does anybody have any suggestions?
Ã, Ã, Ã,Â
I have tried something simalar to this:
Ã, Ã, int number = list.SelectedIndex;
Ã, Ã, Ã, Ã, list.RemoveItem(number);
When I run the game it says invalid index

Does anybody have any suggestions?
Ã, Ã, Ã,Â