Click here to Skip to main content
15,924,367 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi how to transfer data from one list box to another list box
Posted
Comments
Sandeep Mewara 20-Oct-10 11:07am    
What specifically stopping you doing it? Any issue while doing it?

hi sameertm,

suppose we want to transfer an item from listbox1 to listbox2,then:

if listbox1.selecteditem <> nothing then
listbox2.items.add(listbox1.selecteditem)
end if

hope this helps! :)
 
Share this answer
 
Comments
Dalek Dave 20-Oct-10 10:51am    
Damn, beat me to it, and a better answer!
Tarun.K.S 20-Oct-10 10:56am    
hehehe! :D
Rajesh Anuhya 21-Oct-10 5:42am    
is this code works if the listbox1 have multi selection option???
Use ListBox1.Add

Just pick the selected Item and add it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900