C#Form窗体通过代码改变尺寸

通过Size属性不能得到正确的窗体尺寸, 怎么办?

还需要设置 MaximumSize 属性和你的 size属性尺寸一样。




             
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Size = new Size(43, 386);
this.MaximumSize = new Size(43, 386);

  

posted on 2014-05-03 09:46  okgogo2000  阅读(512)  评论(0编辑  收藏  举报