I have several groups of combo boxes with a check box next to each group. I'd like to make it so that if the user check the checkbox, the combo boxes will become enabled (they default to enabled=false). That wouldn't be so difficult, but in an effort to create what I'd consider more efficient code, I'd like to find a way to use the same routine to enable all of my groups of combo boxes by sending the name of the checkbox that was turned on into that routine, and then using some sort of dynamic evaluation to enable all of its related combo boxes.
For instance my form has:
checkbox (name: car_checkbox), combobox (name: car_manufacturer_combo), combobox (name: car_color_combo)
checkbox (name: boat_checkbox), combobox (name: boat_manufacturer_combo), combobox (name: boat_color_combo)
How could I do something where whenever one of those two checkboxes is checked (I have 10 of them on my actual form) I automatically enable the comboboxes on the same line without having to write something special to do each line of comboxes.
Thank you!

Checkbox enables multiple fields
Spidey
Perhaps you could create an array of combo boxes and associate it with a checkbox via a HashTable, then you could write one handler that looks up an array, and iterates through it, enabling or disabling items.
Tayo
I am really hoping to figure out something more flexible than that. I think I could figure it out if I just knew what the VB equivalent of javascript's eval() function was.
Thanks again for taking the time to help.
Jacek F
The only other option I can think of is to create a panel control that has a checkbox on it, and that iterates through the children of the panel and set them all.