foreach(Control c in groupBox1.Controls)
{
  if(c is TextBox)
  {
    (TextBox)c.Text = "";
  }
}

 

posted on 2020-02-27 15:49  漂乎兮乎  阅读(665)  评论(1编辑  收藏  举报