批量对TextBox控件禁用或清空

foreach (Control c in _frm.groupBox_Car.Controls)
        {
             if (c is TextBox) c.Enabled = false;

             if ( c  is TextBox) c.text="";
        }

posted on 2012-08-28 23:40  林中的鱼  阅读(245)  评论(0编辑  收藏  举报

导航