c#在线程中动态生成控件,求代码 本帖最后由 caozhy 于 2014-07-05 23:26:23 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public void a(){System.String[][] str = list.ToArray(); for (int k = 0; k < str.Length;k++ ) { int S = 31; this.Invoke(new Action(() => { PictureBox picBox = new PictureBox(); picBox.Location = 位置 picBox.Size = 大小 picBox.Name = "picBox" + k; Controls.Add(picBox); Label la = new Label(); ... //类似 })); }} Socket编程-如何关闭服务端? 有电路仿真软件开发经验的进 溢出 c#搜索硬盘文件问题! SharpZipLib压缩问题! asp.net下用C#如何循环读出指定文件夹下所有文件的名字 谈谈大家辞职的经验,经历,和辞职信的写法 请问如何为一个类添加资源?? 简单的格式转换 您使用的私钥格式错误,请检查RSA私钥配置,charset = utf-8 能否设置ComboBox选中的项加粗,没选中的项不变? MDI子窗体的问题
{
System.String[][] str = list.ToArray();
for (int k = 0; k < str.Length;k++ )
{ int S = 31;
this.Invoke(new Action(() => {
PictureBox picBox = new PictureBox();
picBox.Location = 位置
picBox.Size = 大小
picBox.Name = "picBox" + k;
Controls.Add(picBox);
Label la = new Label();
... //类似
}));
}
}