不能强制WebBrowser控件使用IE浏览器的最新版本来呈现 [英] Cannot force WebBrowser Control to render using current version of IE

查看:684
本文介绍了不能强制WebBrowser控件使用IE浏览器的最新版本来呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的Windows WebBrowser控件窗体应用程序使用渲染页面的最新的的Internet Explorer版本,或已安装在我的机器上ATLEAST的最新版本 - 这是IE 11

I need the WebBrowser Control in my Windows Forms application to render pages using the latest version of Internet Explorer, or atleast the latest version that is installed on my machine - which is IE 11.

几个星期前,我才开始做这个项目,我碰到一个叫DevDocs.io网站,在IE 11它的工作原理。然而,即使应用注册表破解后,我不能在WebBrowser控件,因为很明显我使用的是不支持浏览器中查看DevDocs.io。它接着说,我需要为使用火狐,Chrome或IE 10+。我想我是用IE 10+,因为我已经添加了DWORD到注册表中。

A few weeks ago, before I began working on this project I came across a website called DevDocs.io, and in IE 11 it works. However, even after applying the registry hack I cannot view DevDocs.io in the WebBrowser control because apparently I am using an "Unsupported" browser. It then goes on to say that I need to use either Firefox, Chrome or IE 10+. I thought I was using IE 10+ since I had added the DWORD to the registry.

我遇到的许多的网站,只是不显示或正常行为,由于这样的事实,WebBrowser控件仍然未呈现,在IE11,或10,或9 ...

I've come across many websites that just don't display or behave normally due to the fact that the WebBrowser control still isn't rendering in IE11, or 10, or 9...

有两件事情我想知道:

  • 有没有一种方法或类暴露渲染引擎正在使用WebBrowser控件?
  • 为什么不是DWORD注册表黑客的工作,以及如何得到它的工作?

需要明确的是,我已经到了注册表,抬头一看: HKEY LOCAL MACHINE>软件> MICROSOFT> INTERNET EXPLORER>主要>特征控制> FEATURE_BROWSER_EMULATION ,并添加值的DWORD MYAPP.EXE 11000

To be clear, I have gone to the Registry, and looked up: HKEY LOCAL MACHINE > SOFTWARE > MICROSOFT > INTERNET EXPLORER > MAIN > FEATURE CONTROL > FEATURE_BROWSER_EMULATION and added a DWORD with values myApp.exe and 11000.

11000是得到它的使用IE11,按的http://msdn.microsoft.com/en-us/library/ee330730%28VS.85%29.aspx#browser_emulation.

The 11000 is to get it to render using IE11, as per http://msdn.microsoft.com/en-us/library/ee330730%28VS.85%29.aspx#browser_emulation.

推荐答案

您需要在这两个主要的(64位)节点和32位节点添加注册表项, HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \微软\的Internet Explorer \ MAIN \ FeatureControl

You need to add your registry key under both the main (64bit) node and the 32bit node, HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl

您应该然后访问 http://webdbg.com/ua.aspx 验证文档模式和UA字符串。

You should then visit http://webdbg.com/ua.aspx to verify the document mode and UA string.

这篇关于不能强制WebBrowser控件使用IE浏览器的最新版本来呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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