Question List box and combobox?

MattyMS

New member
Joined
May 20, 2012
Messages
3
Programming Experience
1-3
i am wondering how i would have 20 list boxes for 20 items in the combobox what would i do if i change the item in the combo box to get the specific list box to show and others to hide?
 
You wouldn't use 20 ListBoxes. You would use one ListBox and change the data displayed in it. Can you provide more details about what exactly the data is that you're displaying?
 
i want to save times from the timer i can insert them but when i change the item in the combobox i.e 4x4 cube i want the times that i had be4 for this also
 
i want to save times from the timer i can insert them but when i change the item in the combobox i.e 4x4 cube i want the times that i had be4 for this also

That's basically no help so let me just provide a general solution. You could create an array where the elements were the lists that you want to display in the ListBox. When the user makes a selection in the ComboBox, you use the SelectedIndex to get the corresponding list from the array and bind that list to the ListBox.
 
Back
Top