遍历button
求助,如何遍历groupbox中所有的button111 222 遍历控件,判断包含名称类型等即可
//遍历窗体所有控件,
foreach (Control control in this.Controls)
{ //遍历后的操作...
control.Enabled = false;
}
//遍历个别控件
foreach (Control control in this.panel4.Controls)
{
control.Enabled = false;
} 5555
页:
[1]