Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 /// <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();
 }