* "GJP" <ga***@gMYSECONDNAME4397.fsnet.co.uk> scripsit:
Im trying to swap items in a list box
For example. you select a item(s) in list box A, click a button and it will
move it to list box B.
I can get it to move to a text box, but not to a list.
\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Add the item to the 2nd listbox.
Me.ListBox2.Items.Add(Me.ListBox1.SelectedItem)
' Remove it from the 1st listbox.
Me.ListBox1.Items.Remove(Me.ListBox1.SelectedItem)
End Sub
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>