C# 动态生成控件
摘要:
//窗体加载的构造方法public AA(){ //定义一个List存放动态生成的控件(这里以Label为例) List<Label> lab=new List<Label>(); for(int i=0;i<变量;i++) { lab.Insert(i,new Label()); lab[i].Text=变量; lab[i].].Locat... 阅读全文
posted @ 2010-08-16 00:48 VictorShan 阅读(432) 评论(0) 推荐(0) 编辑