Click here to Skip to main content
15,891,629 members
Please Sign up or sign in to vote.
1.15/5 (4 votes)
See more:
Hi..I want to display all items in listbox in form1 to another listbox in form2. Im using vb 6.0. Anybody know how? thanks..
Posted
Comments
Maciej Los 1-Sep-15 15:38pm    
What have you tried? Where are you stuck?
Richard MacCutchan 2-Sep-15 3:43am    
Create a list of items from the first listbox and pass it to the second one. Where is the difficulty?
CHill60 2-Sep-15 12:08pm    
The key question here is what is the relationship between form1 and form2? How was form2 displayed? We'll need to see some code

1 solution

Form controls are Public in VB6, so in From2 you could simply iterate over form1.originalListbox elements and add them in destinationListbox.
 
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