i need to find controls in my forms. in asp.net i used Recursive method to do it.now how to do in winforms
public static Control FindControlRecursive(Control root, string id)
{
if (root.ID == id)
return root;
return root.Controls.Cast<Control>()
.Select(c => FindControlRecursive(c, id))
.FirstOrDefault(c => c != null);
}
any idea..thanks...