Dev

1.dev界面最大化

   不要使用Form的WindowsState属性,利用窗体的Width和Height和StartPostion属性来做。(WindowState 属性,会导致界面出现卡顿)

 public MainForm()
 {
     InitializeComponent();
     this.Width = Screen.PrimaryScreen.WorkingArea.Width;
     this.Height = Screen.PrimaryScreen.WorkingArea.Height;
     this.StartPosition = FormStartPosition.CenterScreen;
 }
posted @ 2018-10-05 20:04  持之  阅读(444)  评论(0编辑  收藏  举报