可以装一把——c#中手动添加控件

TextBox txt = new TextBox();  //文本框控件

//如果想在移动控件位置  point(x,y)

txt.Location = new Point(50,50);

this.Controls.Add(txt);  //this代表当前空间的所有集合

 

不过手动添加控件是要在Load方法中

 

posted @ 2017-03-22 20:29  木木~五  阅读(1104)  评论(0编辑  收藏  举报