Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Groupbox question

Status
Not open for further replies.

Smitty020

MIS
Jun 1, 2001
152
US
I have a groupbox on a form that contains 5 comboboxes. I would like to loop through the comboboxes, and and put the values of the selection into an array, givin' there is a selection.

How can I loop though the comboboxes? Is there an easy way to do this?

Thanks in advance!

-Smitty
 
Way One) Emnumerate the form.controls collection, then next thought it.

Way Two) When creating the objects, put them in an array. Eg)

int max_buttons = 5;
button mybuttons[max_buttons];

for (int i = 0; i<max_buttons; i++)
{
button mybutton = button();
}

to loop though the control, loop in the same way


Hope this helps

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top