将页面上的textbox赋值为string.empty

foreach(Control control in this.form1. Controls)

{

    if(control is TextBox)

     {

       TextBox tb=(TextBox)control;

      tb.Text=string.Empty;

    }

 

}

posted @ 2012-12-25 14:52  消沉  阅读(145)  评论(0编辑  收藏  举报