foreach(System.Windows.Forms.Control control in this.Controls)
{
    if(control is System.Windows.Forms.TextBox)
    {
         System.Windows.Forms.TextBox tb=(System.Windows.Forms.TextBox)control;  
         tb.Text=String.Empty;
    }  
}

 

posted on 2014-05-28 16:56  清风暮雨  阅读(198)  评论(0)    收藏  举报