Here is a piece of code that will enable you to list every control on a form. To identify the child controls for any control, use this snippet.
public static class Extensions
{
public static void EnumerateChildren(this Control root)
{
foreach (Control control in root.Controls)
{
Console.WriteLine("Control [{0}] - Parent [{1}]",
control.Name, root.Name);
if (control.Controls != null)
{
EnumerateChildren(control);
}
}
}
}
And you can invoke this function like this, to enumerate all the controls of a Form.
this.EnumerateChildren();