报错信息:System.Windows.Forms.Form.Size”的返回值,因为它不是变量
解决方法:
1、(WinForm)FormBorderStyle属性设置为“sizable(就是可变的)”。
2、替换函数,不要直接设置Width和Height的值
//this.Size.Width = 宽度;
//this.Size.Width = 高度;
this.ClientSize = new System.Drawing.Size(宽度, 高度);
报错信息:System.Windows.Forms.Form.Size”的返回值,因为它不是变量
解决方法:
1、(WinForm)FormBorderStyle属性设置为“sizable(就是可变的)”。
2、替换函数,不要直接设置Width和Height的值
//this.Size.Width = 宽度;
//this.Size.Width = 高度;
this.ClientSize = new System.Drawing.Size(宽度, 高度);