脚本错误WebBrowser控件中的WPF [英] Script Error in webBrowser control WPF
问题描述
在web浏览器上的控制工作时使用WPF获取错误,如脚本错误,甚至我粘贴屏幕截图这里甚至一些jQuery UI和css不工作
When am work on webBrowser control using wpf Getting error like "script error" even i pasted screen shot here and even some jquery UI and css not working
推荐答案
您必须改变你的web浏览器渲染引擎,默认情况下它使用的最古老的一个
You have to change your WebBrowser rendering engine, by default it uses the oldest one.
在这个环节微软介绍了如何可以做到这一点:$ b $ b的 http://msdn.microsoft.com/en-us/library/ie/ee330730%28v=vs.85%29。 ASPX
In this link Microsoft describes how you can do it: http://msdn.microsoft.com/en-us/library/ie/ee330730%28v=vs.85%29.aspx
和你可以按照这个好答案了。
关于IE9浏览器控件
And you can follow this good answer too. Regarding IE9 WebBrowser control
注意,如果你是一个64位系统上运行32位应用程序,你必须设置此键代替
[HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
我试过失败在你的屏幕截图,并与从web浏览器此注册表更改行之有效的站点。
I tried the site that fails in your screenshot and works well with this registry change from a WebBrowser.
这篇关于脚本错误WebBrowser控件中的WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!