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

 

 

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

posted on 2012-04-07 23:06  魔_君  阅读(659)  评论(0编辑  收藏  举报