private void FindControl(Control ctrl, string name) { if (ctrl.Name.Equals(name)) { MessageBox.Show(ctrl.Name); return; } foreach (Control ctr in ctrl.Controls) { FindControl(ctr, name); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)