title: Changing the compatibility mode of IE programmatically when working with shdocvw.InternetExplorer
body: <p>I have read many forums about this. I am not working on this server side nor on the client side. I am working with the Quality Assurance department of my company. We have an in house testing software built in the .Net Framework for testing our companies various websites. We prefer our testing for Internet Explorer be done in Version 9.</p>
  
  <p>The problem I am facing is that a specific site that we test, uses the meta tag to set IE to use compatibility mode 7 (IE 7). When this gets set, the only way to reset it to 9 is to manually go into IE development tools and switch it back to IE9. I have read about using the registry key value to switch it, and have tried without success. I was also exploring the idea of trying to some how manipulate the HTMLDocument to change that or insert in the the head tag, the meta tag and set it to IE9. </p>
  
  <p>I would appreciate anyone's suggestions or links to helpful articles or forums. We are using the ShDocVW.InternetExplorer to run our tests along with the mshtml library. </p>