我真很想跟你说看desigener.cs
//创建一个button
private System.Windows.Forms.Button btnCalculate;
在构造函数里写:
this.btnCalculate = new System.Windows.Forms.Button();//动态生成
this.btnCalculate.Location = new System.Drawing.Point(104, 117);//指定位置
this.btnCalculate.Name = "btnCalculate";//指定名字
this.btnCalculate.Size = new System.Drawing.Size(75, 23);//指定大小
this.btnCalculate.Text = "=(&o)";//指定显示文字
this.Controls.Add(this.btnCalculate);//加载到窗体