/// <summary>
/// 在winform中查找控件
/// </summary>
/// <param ></param>
/// <param ></param>
/// <returns></returns>
private SystemWindowsFormsControl findControl(SystemWindowsFormsControl control string controlName)
{
Control c;
foreach (Control c in controlControls)
{
if (cName == controlName)
{
return c;
}
else if (cControlsCount > )
{
c = findControl(c controlName);
if (c != null)
{
return c;
}
}
}
return null;
}
//调用
for (int i = ; i <= ; i++)
{
string _box = b + iToString();
TextBox tb = (TextBox)thisfindControl(groupBox _box);
tbText = iToString();
}