name="SOFTWARE\\Wow6432Node\\Microsoft\\Internet Explorer\\MAIN\\FeatureControl\\FEATURE_BROWSER_EMULATION"
如图:在winform里面使用注册表方式,修改当前系统的webbrowser内核为IE8,但是这样子没有效果,哪位大神能否帮忙解决下。
如果豆子不够,还可以追加
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION
key:程序名称
value:对应IE的值
IE各版本的值如下:
11001 (0x2EDF) Internet Explorer 11. Webpages are displayed in IE11 Standards mode, regardless of the !DOCTYPE directive
11000 (0x2AF8) :Internet Explorer 11. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode
10000 (0x2710) :Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode.
10001 (0x2AF7) :Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the !DOCTYPE directive.
9999 (0x270F) :Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the !DOCTYPE directive.
9000 (0x2328) :Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode.
8888 (0x22B8) :Webpages are displayed in IE8 Standards mode, regardless of the !DOCTYPE directive.
8000 (0x1F40) :Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode.
7000 (0x1B58) :Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode.
不知道能不能帮到你
我通过Registry.LocalMachine取到了HKEY_LOCAL_MACHINE节点,在指定下面节点去找到目录,动态增加一个项,指定为ie8,和你说的一样,但是没有效果
@lee_mosquito: 我是直接修改注册表的。没有用程序,不好意思啊。
@LuffyGu: 我自己解决了,谢谢啊
@lee_mosquito: 也没帮到你,谢谢你的豆子
原来是注册表里面的名字和程序运行的名字不一样,那样的方式是行得通的