遍历winform 页面上所有的textbox控价并赋值string.Empty

 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;
                }
            }

  

反思 空杯 担当
原文地址:https://www.cnblogs.com/oralig/p/7879819.html