111,126
社区成员
发帖
与我相关
我的任务
分享foreach(Control c in this.Controls)
{
int i=0;
if(c!=null && c is TextBox)
{
c.Text=array[i];
i++;
}
} string [] array;
//对array实例化并赋值
TextBox t;
for(int i = 0; i < this.Controls.Count; i++)
{
t = this.Controls[i] as TextBox;
if(t != null)
{
t = yourArray[i];
}
}