代码
privatevoid allCtl(Control ctl)
{
foreach (Control c in ctl.Controls)
{
if (c.Controls.Count <1)
{
//do what you want;
break;
}
else
{
allCtl(c);
}
}
}
时间: 2024-10-29 22:54:39