C # Internet Explorer 9 and AxWebBrowser

I have a .NET Framework 2.0 project and AxWebBrowser test management in Windows 7 with IE9 web browser.

When I put this code in my IE9 browser:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=9">
</head>
<body>
    <script>alert(document.documentMode);</script>
</body>
</html>

I get the value 9 - the way it is. But when I put the same code in AxWebBrowser in my project, I always get the value 8, and the HTML5 code does not work properly.

Where is the problem?

+2
source share
2 answers

You will need to use the registry to enable Internet feature management and install the version of IE that you would like to use.

Here is an example registry file: (Remember to replace YOURPROGRAM.EXE with the name of your executable file)

Windows Registry Editor version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"YOURPROGRAM.EXE"=dword:00002328

.

, IE9 , HTML5, -, .

. : http://msdn.microsoft.com/en-us/library/ee330730%28VS.85%29.aspx#browser_emulation

+2

. , FEATURE_BROWSER_EMULATION, - Wow6432Node, - Wow6432Node.

0

All Articles