title: Unwanted scrollbars in WebBrowser control when in IE9 mode
body: <p>Using the WinForms <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx" rel="nofollow noreferrer"><code>WebBrowser</code> control</a> in edit mode (<a href="https://stackoverflow.com/questions/5001454/">as described here</a>), I am experiencing unnecessary scrollbars when switching the control into "<a href="https://stackoverflow.com/a/5357168/107625">IE9 mode</a>".</p>
  
  <p>I'm using the meta tag</p>
  
  <pre><code>&lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt;
  </code></pre>
  
  <p>as described in <a href="https://stackoverflow.com/a/6529745/107625">this posting</a> to switch into editing mode.</p>
  
  <p>This is how it looks like when being in "IE9 mode":</p>
  
  <p><img src="https://i.stack.imgur.com/E34IN.png" alt="enter image description here"></p>
  
  <p>In contrast, when using it without the above meta tag, it correctly looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/GGSOg.png" alt="enter image description here"></p>
  
  <p>Here, it looks as expected; the horizontal scrollbar is not present at all and the vertical scrollbar is not active.</p>
  
  <p>I tried every DOCTYPE I can think of; the result seems to stay the same. </p>
  
  <p>(In case it matters: The content that is being switched into edit mode comes from a local HTTP URL of the built-in mini webserver of my application, i.e. not from a string or from a file URL).</p>
  
  <p><strong>My question is:</strong></p>
  
  <p>Is there a way to use the <code>WebBrowser</code> control with IE9 in "IE9 edit mode" and still have the scrollbars only when necessary?</p>