Im making a program which in the main form has about 15 checkboxes. 14 of them are different choices and the last one is for "include all".
Now to the problem.
When I checks the "Include all" button i want all the others checkboxes greyed out. But for now the code look like this:
check_1->Enabled = false;
check_2->Enabled = false;
check_3->Enabled = false;
check_4->Enabled = false;
check_5->Enabled = false;
.
.
.
.
.
.
....and so on. It seems a bit clumpsy....
But cant i make a for-loop or something instead??
for ( int a=1;a<15;a++)
but how should write the names then of the checkboxes??
Or is there another better way to do it ??
Now to the problem.
When I checks the "Include all" button i want all the others checkboxes greyed out. But for now the code look like this:
check_1->Enabled = false;
check_2->Enabled = false;
check_3->Enabled = false;
check_4->Enabled = false;
check_5->Enabled = false;
.
.
.
.
.
.
....and so on. It seems a bit clumpsy....
But cant i make a for-loop or something instead??
for ( int a=1;a<15;a++)
but how should write the names then of the checkboxes??
Or is there another better way to do it ??