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
Loading
VulpesPosted Oct 31, 2012, 7:42 AM
The code to do that would be something like this:
foreach(Control c in groupBox1.Controls)
{
if ( !(c is Label)) c.Enabled = false;
}