コード例 #1
0
ファイル: FullScreen.cs プロジェクト: marlonnn/CII.HV
        public void ResetFullScreen()
        {
            if (fullScreen)
            {
                // reset full screen
                // reset the normal WinForm properties
                // always set WinForm.Visible to false to avoid site effect
                form.Visible         = false;
                form.WindowState     = windowState;
                form.FormBorderStyle = borderStyle;
                form.Bounds          = bounds;

                HandleTaskBar.showTaskBar();

                form.Visible = true;

                // Not in full screen mode
                fullScreen = false;
            }
        }
コード例 #2
0
ファイル: FullScreen.cs プロジェクト: marlonnn/CII.HV
 /// <summary>
 /// You can use this to reset the Taskbar in case of error.
 /// I don't want to handle exception in this class.
 /// You can change it if you like!
 /// </summary>
 public void ResetTaskBar()
 {
     HandleTaskBar.showTaskBar();
 }