C# 窗体最大化(自适应任务栏位置)

this.FormBorderStyle = FormBorderStyle.None;
this.Location=Screen.PrimaryScreen.WorkingArea.Location;
this.Width = Screen.PrimaryScreen.WorkingArea.Width;
this.Height = Screen.PrimaryScreen.WorkingArea.Height;

 

posted @ 2018-01-30 18:00  zhaogaojian  阅读(3214)  评论(0编辑  收藏  举报