/// <summary>
/// 在winform中查找控件
/// </summary>
/// <param ></param>
/// <param ></param>
/// <returns></returns>
private System
{
Control c
foreach (Control c in control
{
if (c
{
return c;
}
else if (c
{
c
if (c
{
return c
}
}
}
return null;
}
//調用
for (int i =
{
string _box =
TextBox tb = (TextBox)this
tb
}
From:http://tw.wingwit.com/Article/program/net/201311/12060.html