標籤:
當前的螢幕除工作列外的工作域大小 this.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width; this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;當前的螢幕包括工作列的工作域大小this.Width=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;this.Height=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;工作列大小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實現全螢幕顯示WinForm:this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;this.WindowState = System.Windows.Forms.FormWindowState.Maximized;this.TopMost = true; winform擷取螢幕地區Rectangle ScreenArea = System.Windows.Forms.Screen.GetWorkingArea(this);
C#WinForm擷取螢幕大小