简体   繁体   English

C#WebBrowser没有加载页面

[英]C# WebBrowser isn't loading a page

Well, I've a problem, when I try to navigate to a webGL page using the Webbrowser component, I see a blank page, meaning the page isn't loading. 好吧,我有一个问题,当我尝试使用Webbrowser组件导航到webGL页面时,我看到一个空白页面,这意味着该页面未加载。

The page contains WebGL and Javascript, so I think maybe webbrowser doesn't support one or both of those. 该页面包含WebGL和Javascript,因此我认为webbrowser可能不支持其中一个或两个。 I've also tried to use gecko, but it didn't work, either. 我也尝试过使用壁虎,但是也没有用。

Note that I'm using C# in Visual Studio 13. 请注意,我在Visual Studio 13中使用C#。

Anyone can help me?? 有人可以帮助我吗? Thanks for all ;) 谢谢大家;)

You need to have IE11 installed on the PC in question, and you need to set the registry key FEATURE_BROWSER_EMULATION to IE11 mode for yourapp.exe and yourapp.vshost.exe 您需要在有问题的PC上安装IE11,并且需要将yourapp.exeyourapp.vshost.exe的注册表项FEATURE_BROWSER_EMULATION设置为IE11模式。

http://msdn.microsoft.com/en-us/library/ee330730%28VS.85%29.aspx#browser_emulation http://msdn.microsoft.com/en-us/library/ee330730%28VS.85%29.aspx#browser_emulation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM