C#批量操作控件,如批量修改TextBox的值或清空

foreach (Control control in this.groupBox2.Controls)  
{
if(control is TextBox)
{
if(control.Name != "text_JSBS")
{
control.Text
= "0.00";
}
}
}

以上代码是批量 修改 groupbox2里面的TextBox值

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2021-05-16
  • 2021-07-06
  • 2021-06-25
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2022-01-14
  • 2021-11-16
  • 2021-09-07
  • 2021-10-11
相关资源
相似解决方案