The size of the current screen in addition to the Work field outside the taskbar This. Width =System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width; This. Height =System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height; The current screen includes the task bar's working field size This. Width=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; This. height=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height; taskbar size This. width=system.windows.forms.screen.primaryscreen.bounds.width-System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width; This. height=system.windows.forms.screen.primaryscreen.bounds.height-System.windows.forms.screen.primaryscreen.workingarea.height;winform Implement full-screen display WinForm: This. FormBorderStyle =System.Windows.Forms.FormBorderStyle.None; This. WindowState =System.Windows.Forms.FormWindowState.Maximized; This. topmost =true; WinForm Get the screen area rectangle Screenarea= System.Windows.Forms.Screen.GetWorkingArea ( This);
C#winform Get screen Size