foreach (Control control in this.TpChange.Controls)
{
//MessageBox.Show(control.GetType().ToString());
if (control.GetType().ToString() == "System.Windows.Forms.RichTextBox")
{
((System.Windows.Forms.RichTextBox)control).Text = "";
}
}
转载于:https://www.cnblogs.com/bestsaler/archive/2008/12/02/1835890.html