Would you be surprised to learn that it's virtually the same:As for the secondaty monitor, you can use the Screen class to get information about displays, so you can set the location of the form so that it is on the secondary display before maximising it.Code:this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized;Code:foreach (Screen scr in Screen.AllScreens) { // Find the first non-primary screen. if (!scr.Primary) { // Position the form on that screen. this.Location = new Point(scr.Bounds.Left, scr.Bounds.Top); break; } } // Make the form full screen. this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized;




Reply With Quote