ListBox2.Items.Clear(); foreach(ListItem item in ListBox1.Items) { ListBox2.Items.Add(item); }
listbox2.Items.AddRange(listbox1.Items.ToArray());
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click 'uncomment this line below only if you want to clear the items 'from ListBox1 before adding the items from ListBox2 'ListBox1.Items.Clear() ListBox1.Items.AddRange(ListBox2.Items) End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)