标签:
1、向窗体中添加控件的最少步骤: 窗体的句柄为this
private System.Windows.Forms.Button button1; //声明button类变量button1
this.button1 = new System.Windows.Forms.Button(); //创建button对象,其(name属性)句柄为button1-----实例化
this.Controls.Add(this.button1); //通过句柄button1,将button1控件添加到窗体中
转载地址:http://blog.csdn.net/han_yankun2009/article/details/25919565
标签:
原文地址:http://www.cnblogs.com/try-nocatch/p/4572335.html