比如说 Button b1 = new Button();
b1.Height = 10;
b1.Width = 10;
b1.Location = new Point(25, 25);
this.Controls.Add(b1);
这样为啥不行呢?
说空间的Height不是变量,不能改变,我应该怎么做啊?
b1.Height = 10;
b1.Width = 10;
b1.Location = new Point(25, 25);
this.Controls.Add(b1);
这样为啥不行呢?
说空间的Height不是变量,不能改变,我应该怎么做啊?
b1.Size = new System.Drawing.Size(100, 50);