var list = this.Controls.Find("panel", true); if (list != null) { foreach (var item in list) { if (item is Panel) { MessageBox.Show(item.Name); } } }