public partial class AdminPage : Form { public AdminPage() { InitializeComponent(); } private void GoFullscreen(bool fullscreen) { if (fullscreen) { this.WindowState = FormWindowState.Normal; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Bounds = Screen.PrimaryScreen.Bounds; } else { this.WindowState = FormWindowState.Maximized; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable; } }
InitializeComponent
public AdminPage() { InitializeComponent(); this.WindowState = FormWindowState.Maximized; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)