VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Move contents of one listbox into another. All you have to type is one line of code!

by Bryan Blake (8 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 26th March 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Move contents of one listbox into another. All you have to type is one line of code!

Rate Move contents of one listbox into another. All you have to type is one line of code!




Public Function MoveListBox(list1 As ListBox, list2 As ListBox)
For i = 0 To list1.ListCount
list2.AddItem list1.List(i)
Next i
list1.Clear
End Function

Download this snippet    Add to My Saved Code

Move contents of one listbox into another. All you have to type is one line of code! Comments

No comments have been posted about Move contents of one listbox into another. All you have to type is one line of code!. Why not be the first to post a comment about Move contents of one listbox into another. All you have to type is one line of code!.

Post your comment

Subject:
Message:
0/1000 characters