internal ContainerControl FindContainer (Control c) { while ((c != null) && !(c is ContainerControl)) c = c.Parent; return c as ContainerControl; }