|
-
December 3rd, 2008, 05:11 PM
#5
Re: this.controls not including the controls inside tabcontrol
Thanks guys, i worked out this with following code. Cheers,
foreach (Control childControl in this.Controls )
{
if (childControl is TabControl)
{
foreach (Control ctlTabPage in childControl.Controls)
{
foreach (Control innerControl in ctlTabPage.Controls)
{
if (innerControl is Button)
{
innerControl.Enabled = inStatus;
}
}
}
}
else
{
if (childControl is Button)
{
childControl.Enabled = inStatus;
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|