For Each li As ListItem In ListBox1.Items
If li.Selected = True Then
ListBox2.Items.Add(li)
End If
Next
For i As Integer = ListBox1.Items.Count - 1 To 0 Step -1
If ListBox1.Items(i).Selected = True Then
ListBox1.Items.Remove(ListBox1.Items(i))
End If
Next
沒有留言:
張貼留言