C# 按照名字遍历控件
时间:2019-10-29 20:55:00
收藏:0
阅读:122
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
评论(0)