更新时间:2023-02-10 23:33:48
尝试以下操作...
Try the following...
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);
}
}
问候,
Vineeth
Regards,
Vineeth
请参见此处 [