Controlling list boxes

vinodyadav21

Member
Joined
May 11, 2012
Messages
6
Programming Experience
1-3
How to control four list boxes at a time as i have same number of items in four listboxes please let me know


regards vinod kumar
 
My application for accessing data inside your head keeps throwing a "WTF" exception. can we just do it the old fashioned way?

Control how? What code do you have so far? What are you trying to do.
 
Define a class with four properties, one for each of the four values. Create an array or collections of instances of that type. Bind that list to all four ListBoxes and the selections will stay in sync. Set the DisplayMember of each ListBox to the name of the property you want them to display and then assign the list to the DataSource of each ListBox.
 
Back
Top