SetWinFullScreen() public static method

public static SetWinFullScreen ( IntPtr hwnd ) : void
hwnd System.IntPtr
return void
Exemplo n.º 1
0
 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);
     }
 }