Hey,
I created a form with many controls. It's a GUI for a measurement program. Therefore some controls must be disabled and some enabled.
When the START button is pressed, every control should be disabled except the ABORT button.
It works with following code:
// Disable each control in the active form's control collection except the ABORT BUTTON
for (int i = 0; i < this.Controls.Count; i++)
{
this.Controls[i].Enabled = false;
}
buttonAbort.Enabled = true;
Well, here's my problem:
AFTER the measurement is done or else the ABORT button is pressed, I want the initial state back.
How can I do this devoid of enable or disable every control on that form?
Thanks for your help.