c# winform 窗体最大化后挡住了任务栏

2020-08-19 11:15:25 浏览数 (1)

代码语言:javascript复制
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;

0 人点赞