private static void GetErrorProviders( Control control, ICollection<ErrorProvider> errorProviders) { ExtractErrorProviders(control, errorProviders); foreach (Control childControl in control.Controls) GetErrorProviders(childControl, errorProviders); }