for (int i = 1; i <= 21; i++)
{
strName = "_txt_input_"+i.ToString();
Control con = this.Controls.Find(strName, true)[0];
con.Text = "";
}
原文:https://www.cnblogs.com/-jwj/p/11761020.html