this.WindowState = FormWindowState.Normal; // optionally centered-on-screen
this.WindowState = FormWindowState.Maximized;
this.WindowState = FormWindowState.Minimized; // App can start that way too!
Note: user-configured shortcuts can override startup state. (Right-click on the shortcut, choose "Properties", select the "Shortcut" tab, and pick another value from the "Run" dropdown).
this.FormBorderStyle = FormBorderStyle.None;
this.Left = 0;
this.Top = 0;
this.Width = SystemInformation.VirtualScreen.Width;
this.Height = SystemInformation.VirtualScreen.Height;
// Loop through all screen and get its specs
foreach( Screen screen in Screen.AllScreens ) {
MessageBox.Show(
screen.WorkingArea.Width // Available horizontal space, in pixels
+"\n"+
screen.WorkingArea.Height // Working vertical space available
+"\n"+
screen.WorkingArea.Top // Start of available vertical real estate
// Etc.
);
}
Note: if your program launches in full screen mode, it will take up the entire available screen real estate, including the taskbar area (which is then hidden). If you toggle the full-screen mode at runtime, the next time you go full-screen will end up being a "hybrid mode", which partially hides behind the taskbar. But during the initial full-screen mode, the window can be minimized, the user can use Alt+Tab to switch between it and other applications, and your program will remain in a "true" full-screen mode, completely hiding the taskbar when it is the active window.