In the .NET (3.5) WinForm application, the relationship between the webbrowser control and IE9, especially the compatibility of SVG rendering, caused some questions.
The IE version installed on the mirror system of the webbrowser control. However, for compatibility considerations, it will first display the page in the IE7 standard mode. In order to use the function of IE9, developers should add tags to the tags on the HTML page to ensure that its location is before any CSS or JavaScript reference.
alternative <head>
<meta content="IE=9" http-equiv="X-UA-Compatible"></meta>
HKLM & GT; Software & GT; Microsoft & GT; Internet Explorer & GT; Main & GT; FeatureControl & GT; Feature_browser_emulation
Add 'myapplicationName.exe' to the place, the value is '9000', which will force the Webbrowser control to display the page in IE9 mode. Other values can also be used, but it should be noted that some settings do not fully meet the document description, especially in terms of realizing IE8 compatibility.For non -administrator permissions, a similar registry item can be added to HKCU instead of HKLM, thereby effectively achieve the same results.
The above is the detailed content of Can the .NET WebBrowser Control Fully Utilize IE9's Features, Including SVG Rendering?. For more information, please follow other related articles on the PHP Chinese website!