Enable IE8 rendering in the webbrowser control. The default value is IE7]

Source: Internet
Author: User

Address: http://stackoverflow.com/questions/1786905/c-web-browser-component-is-ie7-not-ie8-how-to-change-this

 

To run a webbrowser control in IE8 standards mode, use the following new value into the registry:

[(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE) \ Software \ Microsoft \ Internet Explorer \ main \ featurecontrol \ feature_browser_emulation] "myapplication.exe" = DWORD 8000 (HEX: 0x1f40)

To run in IE7 standards mode, use the following registry value:

[(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE) \ Software \ Microsoft \ Internet Explorer \ main \ featurecontrol \ feature_browser_emulation] "myapplication.exe" = DWORD 7000 (HEX: 0x1b58)

For IE8 RTM, we 've added a new "forced" IE8 standards mode value. when an application opts into this mode, the Web browser control will use the IE8 User-Agent string and browser emulation mode strictly. it will also ignore fallback features such as the built-in Compatibility View list and the user-generated Compatibility View list when loading pages. to run in "forced" IE8 standards mode, use the following registry value:

[(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE) \ Software \ Microsoft \ Internet Explorer \ main \ featurecontrol \ feature_browser_emulation] "myapplication.exe" = DWORD 8888 (HEX: 0x22b8)

In all of these examples, define myapplication.exe "refers to the name of your application.

Cheers,

Phil

 

Add a registry key ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.