Sorry if this has been answered before but I searched the site and couldn't find anything that answers my question.
I can move selected items between my listboxes but how do i move all items from one listbox and add them to another one? if possible I would like to append them to the bottom rather than replacing the items in the other listbox.
The coding i use to move specific items is
Dim selectedItems = (From i In ListBox1.SelectedItems).ToArray()
For Each selectedItem In selectedItems
ListBox2.Items.Add(selectedItem)
ListBox1.Items.Remove(selectedItem)
Next
I cant answer my own question for some reason but many thanks Heinzi, for anyone else having the same problem the following coding should help you.
Dim selectedItems = (From i In ListBox1.Items).ToArray()
For Each selectedItem In selectedItems
ListBox2.Items.Add(selectedItem)
ListBox1.Items.Remove(selectedItem)
Next