WinForm WebBrowser IE compatibility modified

When WebBrowser Control control application included in the default WebBrowser using IE7.

It seems to be no way to modify the properties in which the program to use the most advanced version of the client browser, but you can modify the client's registry, make exe use a specific version of IE.

Edit the registry as follows: (32-bit system, you may want to ignore WOW6432nODE node)

计算机\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION

DWORD entry is added, the name for the application name, such as xxx.exe, IE is the corresponding version of the following list:

value Explanation
10001 (0x2711) Internet Explorer 10. Web show in standard mode IE 10, the page! DOCTYPE invalid
10000 (0x02710) Internet Explorer 10. IE 10 in accordance with the standard mode on pages! DOCTYPE command to display a webpage. 10 defaults Internet Explorer.
9999 (0x270F) Windows Internet Explorer 9. IE9 mandatory display, ignore! DOCTYPE directive
9000 (0x2328) 9 Default Internet Explorer 9. Internet Explorer, IE9 standard mode in accordance with the page! DOCTYPE command to display a webpage.
8888 (0x22B8) Internet Explorer 8, forced IE8 standards mode display, ignore! DOCTYPE directive
8000 (0x1F40) Internet Explorer 8 the default settings in IE8 standards mode follow the instructions on the page! DOCTYPE command show page
7000 (0x1B58) Use the default WebBrowser Control control application used, in accordance with the standard mode IE7 web page! DOCTYPE directive to display the page.

 

In this memo.

Reference from: https://www.cnblogs.com/zhwl/p/3147832.html

Guess you like

Origin www.cnblogs.com/blogzhang/p/11450546.html