title: SharpDx windowResize
body: <p>I'm trying to implement an update to the backbuffer as soon as my window size has been changed.
  So my Objects wont get streched.
  So I tried this</p>
  
  <pre><code>_renderForm.Resize += OnRenderFormOnResize;
  private void OnRenderFormOnResize(object sender, EventArgs args)
          {
              // Resize  depth bufer ?
              MessageBox.Show("Width: "+_renderForm.ClientSize.Width.ToString() +" | Height: "+ _renderForm.ClientSize.Height.ToString());
  
              _swapChain.ResizeBuffers(_desc.BufferCount, _renderForm.ClientSize.Width, _renderForm.ClientSize.Height, Format.Unknown, SwapChainFlags.None);
              DoResize();
          }
  </code></pre>
  
  <p>I get this error as soon as the window size has been changed.</p>
  
  <blockquote>
    <p>DXGI_ERROR_IVALID_CALL/InvalidCall </p>
  </blockquote>
  
  <p>Am I missing something?</p>