title: X-UA-Compatible doesn't work in C# WebBrowser control
body: <p>I have webpage loaded in winforms WebBrowser control. That page need to be rendered in IE8 mode so I set <code>X-UA-Compatible</code> to <code>IE=8</code>:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"&gt;
  &lt;head&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=8" &gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;meta http-equiv="PRAGMA" content="NO-CACHE" /&gt;
  </code></pre>
  
  <p>Unfortunately when I check user agent I still have MSIE 7.0. What can be the reason that X-UA-Compatible is ignored. When I open my page directly in IE9 all is well - document mode is switched to IE8.</p>
  
  <p>My user agent:</p>
  
  <pre><code>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
  </code></pre>