int ControlCount( Control parentControl )
{
int current=0;
foreach( Control c in parentControl.Controls )
{
if (c.Controls.Count > 0)
{
current += ControlCount(c);
}
else
{
current++;
}
}
return current;
}
MCGINN GROUP FEBRUARY 2020 NEWSLETTER
4 years ago
No comments:
Post a Comment