protected void ClearTextBox()
{
Parallel.ForEach<Control>(this.Controls.Cast<Control>(), c =>
{
if (c is TextBox)
{
TextBox temp = (TextBox)c;
temp.Text =
null;
}
});
}
原文:http://www.cnblogs.com/kevin1988/p/3530252.html