public Control[] Find (string key, bool searchAllChildren)
{
if (string.IsNullOrEmpty (key))
throw new ArgumentNullException ("key");
ArrayList al = new ArrayList ();
foreach (Control c in list)
{
if (c.Name.Equals (key, StringComparison.CurrentCultureIgnoreCase))
al.Add (c);
if (searchAllChildren)
al.AddRange (c.Controls.Find (key, true));
}
return (Control[])al.ToArray (typeof(Control));
}
public int GetChildIndex (Control child)