|
-
December 2nd, 2008, 10:29 PM
#1
this.controls not including the controls inside tabcontrol
Hi All,
I tried to get all the buttons in the working form using the code below, however, i found all the buttons in the Tabcontrol is not included in this.Controls. So how can i access all controls in a form?
foreach (Control childControl in this.Controls )
{
if (childControl is Button)
{
childControl.Enabled = inStatus;
}
}
Thanks
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
|