Easy (I Hope) Listbox Question
I have 2 listboxes. When I select an item (single select) in listbox 1 and hit a button it moves the item from listbox1 to listbox 2, and also then deletes that item from listbox1. The part I'm having trouble with is trying to figure out how to make it so that after that code is executed, to select the newly added item in listbox 2 (using something like selectedindex I'm assuming). Thanks.
Here's my code:
---------------------------------------------------------------
ListBox2.Items.Add(Listbox1.SelectedItem)
ListBox1.Items.Remove(ListBox1.SelectedItem)
---------------------------------------------------------------
So now how do I make it so that the listbox2 item that was just added gets selected?