title: Move items between listbox
body: <p>Sorry if this has been answered before but I searched the site and couldn't find anything that answers my question.</p>
  
  <p>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.</p>
  
  <p>The coding i use to move specific items is </p>
  
  <pre><code> Dim selectedItems = (From i In ListBox1.SelectedItems).ToArray()
  
      For Each selectedItem In selectedItems
          ListBox2.Items.Add(selectedItem)
          ListBox1.Items.Remove(selectedItem)
      Next
  </code></pre>
  
  <p>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.</p>
  
  <p>Dim selectedItems = (From i In ListBox1.Items).ToArray()</p>
  
  <pre><code>For Each selectedItem In selectedItems
      ListBox2.Items.Add(selectedItem)
      ListBox1.Items.Remove(selectedItem)
  Next
  </code></pre>