2 a243398655 a243398655 于 2015.05.29 15:37 提问

vb.net 中webBrowse默认运行IE7我通过注册表修改后无变化

vb.net 中webBrowse默认运行IE7我通过注册表修改后无变化
我修改了注册表值[(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
我的应用程序名称为WindowsApplication1.exe
"WindowsApplication1.exe" = dword 11001 (Hex: 0x2af9)
但是任然没有效果 始终还是现实浏览器版本低
报脚本错误!
图片说明

4个回答

danielinbiti
danielinbiti   Ds   Rxr 2015.05.29 16:21

键值不对吧,这里有详细修改方法
http://extjs.org.cn/fatjames/archives/476

a243398655
a243398655 回复danielinbiti: 组件部分网页没有加载出来的!
大约 3 年之前 回复
danielinbiti
danielinbiti 回复a243398655: 是页面报错还是组件没加载网页,网页报错很正常呀,不要认为设置这个属性后,就是IE11,期望太高了,达不到的。
大约 3 年之前 回复
a243398655
a243398655 回复danielinbiti: 设置了之后一点变化都没有的!在非调试模式下
大约 3 年之前 回复
a243398655
a243398655 回复danielinbiti: 我现在遇到的主要 要报错!网页无法加载完成
大约 3 年之前 回复
danielinbiti
danielinbiti 回复a243398655: 这个效果是有点,就是能支持HTML5,但要达到像IE一样不行,以前用过,IE正常,但这个打开有些效果就是HTML5的部分界面原来显示不出来,后来能显示了,但显示的样子什么还是不对。所以这个从我个人设置这个属性后的结论来看,有效果,但无法达到IE的效果
大约 3 年之前 回复
a243398655
a243398655 我参照的是http://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version
大约 3 年之前 回复
a243398655
a243398655 输入的键值 是对的!我用的是IE11的
大约 3 年之前 回复
devmiao
devmiao   Ds   Rxr 2015.05.29 18:07

修改了重新启动下看看,重启才能生效。

a243398655
a243398655 重启 了还是不行的!
大约 3 年之前 回复
a243398655
a243398655   2015.05.29 16:36
a243398655
a243398655   2015.05.29 16:43

参照的数据文摘

There are two different sets of keys for 32 bit and 64 bit applications.

64 bit or 32 bit only machine:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION

Value Key: DWORD - YourApplication.exe

32 bit on 64 bit machine:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION

Value Key: DWORD YourApplication.exe

The value to set this key to is (taken from MSDN here) as decimal values:regi

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.
10001 (0x2AF7)
Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the !DOCTYPE directive.
10000 (0x2710)
Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode.
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.

The added key looks something like this in the Registry Editor:

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!