winform 无边框应用程序

最大化:

this.WindowState = FormWindowState.Maximized;

存在问题:直接调用上面那个会导致任务栏被覆盖,解决方法,先设置最大化应用程序的分辨率大小为工作区大小,再最大化

this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);

原文地址:https://www.cnblogs.com/sherlock-merlin/p/13572687.html