Control FindControl(string controlName, Control fatherControl) { foreach (Control c in fatherControl.Controls) { if (c.Name == controlName) { return c; } } return null; }
winform的FindControl
最新推荐文章于 2023-09-04 14:38:54 发布
Control FindControl(string controlName, Control fatherControl) { foreach (Control c in fatherControl.Controls) { if (c.Name == controlName) { return c; } } return null; }