Internet Explorer 10 .Net Webbrowser控件 [英] Internet Explorer 10 .Net Webbrowser Control

查看:78
本文介绍了Internet Explorer 10 .Net Webbrowser控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何获得Internet Explorer使用的Webbrowser控件。



我在Windows 7上。



我需要获得最新版本的.Net Webbrowser控件。

I was wondering how I can get the Webbrowser control that Internet Explorer uses.

I''m on Windows 7.

I need to get the most updated version of the .Net Webbrowser control.

推荐答案

没有下载控件的更新版本。您在工具箱中得到的是它。
There is no updated version of the control to download. What you get in the toolbox is it.


您无法更新控件本身,但您可以更改它使用的Internet Explorer逻辑版本。默认情况下,它将使用IE7我相信。如果你有IE的更新版本,你应该可以使用它。







要做到这一点,你必须为每个程序添加一个注册表项。



ex:你的程序被称为我的browser.exe





进入注册表,到以下位置:



HKEY_CURRENT_USER \Software \\ \\ mysoftoft \Internet Explorer \ Main \ FeatureControl \ FEATURE_BROWSER_EMULATION



(如果不存在,你可能需要创建FEATURE_BROWSER_EMULATION)





添加与您的计划名称相匹配的REG_DWORD条目:





name = my browser.exe

type = REG_DWORD

data =要使用的IE版本* 1000 ...因此对于IE8,那将是8000,或者0x00001f40(十六进制)





我只为ie7和ie8尝试了这个,但我确认它的工作方式是转到www。 whatsmyuseragent.com







请注意,如果你想要它可以把它放在HKEY_LOCAL_MACHINE而不是HKEY_CURRENT_USER影响所有用户。
you cannot update the control itself, but you can change what version of internet explorer logic it uses. by default, it will use IE7 i beleive. if you have a more recent version if IE, you should be able to make it use that instead.



to do this, you must add a registry entry for each program.

ex: you program is called "my browser.exe"


go into the registry, to the following location:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION

(you may need to create FEATURE_BROWSER_EMULATION if it does not exist)


Add a REG_DWORD entry that matches the name of your program:


name = my browser.exe
type = REG_DWORD
data = IE version to use * 1000... so for IE8, that would be 8000, or 0x00001f40 (in hex)


I have only tried this for ie7 and ie8, but i confirmed that it works by going to www.whatsmyuseragent.com



note that you can put it in HKEY_LOCAL_MACHINE instead of HKEY_CURRENT_USER if you want it to effect all users.


这篇关于Internet Explorer 10 .Net Webbrowser控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆