解决winfrom最大化 窗体被任务栏挡住的问题

不再设置窗体最大化而是设置窗体的宽高

      this.WindowState = FormWindowState.Normal;
      this.FormBorderStyle = FormBorderStyle.Sizable;
      this.Top = 0;
      this.Left = 0;
      this.Width = Screen.PrimaryScreen.WorkingArea.Width;
      this.Height = Screen.PrimaryScreen.WorkingArea.Height;

 

posted @ 2020-07-31 16:25  Hi!宋先生  阅读(545)  评论(0编辑  收藏  举报