Hi,
I have groupbox and lables and text boxes inside groupbox. If I disable group box all control inside group box will disable.
I need lable inside group box remains same and not grayed out. Could you please suggest me how I do. I am working on window application (winform).
Thanks
Show labels enable when parent groupox is disabled
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Oct 31, 2012, 3:42 AM EDT
The code to do that would be something like this:
foreach(Control c in groupBox1.Controls)
{
if ( !(c is Label)) c.Enabled = false;
}