title: SlimDx FullScreen Switching Problem to Window Mode
body: <pre><code> // handle alt+enter ourselves
          form.KeyDown += (o, e) =&gt;
          {
              if (e.Alt &amp;&amp; e.KeyCode == Keys.Enter) {
                  bool Full;
  
                  Output ThisOut;
                  swapChain.GetFullScreenState(out Full, out ThisOut);
  
                  if (Full == true)
                  {
  
                      swapChain.SetFullScreenState(false, ThisOut);
  
                  }
                  else if (Full == false)
                  {
  
                      swapChain.SetFullScreenState(true, ThisOut);
  
                  }
              }
             //     swapChain.IsFullScreen = !swapChain.IsFullScreen;
  </code></pre>
  
  <p>I was using a tutorial on SlimDx - <a href="http://slimdx.org/tutorials/devicecreation.php" rel="nofollow">http://slimdx.org/tutorials/devicecreation.php</a> and noticed that there wasn't a IsFullScreen property of swapchain. Therefore, I tried to use the other methods available and came across a problem.
  - When I switch to full-screen, it operates as it should; but, when I switch back to non-full-screen, all I see is a blank box that is non-movable. </p>
  
  <p>What is happening? and why isn't there a isFullScreen property like in the tutorial. Is the Device getting lost somewhere? </p>