public static void Maximize(Form targetForm) { if (!IsMaximized) { IsMaximized = true; Save(targetForm); targetForm.WindowState = FormWindowState.Maximized; targetForm.FormBorderStyle = FormBorderStyle.None; //targetForm.TopMost = true; WinApi.SetWinFullScreen(targetForm.Handle); } }