I want to use IE8 as a WebBrowser control in a C# application. How can I disable ‘quirks mode’ and force IE into standards compliance (as far as it is implemented)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think the issue you’re facing is described in IEBlog: WebBrowser Control Rendering Modes in IE8:
Here I should note that the comments on the page say the above is incorrect, and that ‘IE8 renders pages running within instances of the WebBrowser control in IE7 Strict Mode OR Quirks mode by default, depending on the page’s doctype.’
The solution is as follows:
So it sounds like the ‘programmatic’ solution is to write a key in the registry saying you want IE8 Standards mode for
WebBrowsercontrols in your specific application.