简体   繁体   English

Web浏览器控件,Flash不起作用

[英]Webbrowser Control, Flash not working

I know this problem has been around forever and hopefully someone can point me to a solution. 我知道这个问题永远存在,希望有人可以为我提供解决方案。 I created a simple web browser program (using VS 2013 Ultimate) to automate changing from urls by just clicking a button. 我创建了一个简单的Web浏览器程序(使用VS 2013 Ultimate),只需单击一个按钮即可自动更改网址。 It's for children so they don't need to navigate, they just push a button and it takes them to the next url. 它是为儿童准备的,因此他们不需要导航,只需按一下按钮,便会将他们带到下一个网址。

Problem: Flash content will not display using the webbrowser control. 问题:Flash内容不会使用Web浏览器控件显示。 It will display in iexplorer 11 that is installed on the computer. 它将显示在计算机上安装的iexplorer 11中。 It will also display in VS 2013 when I run the code to debug (see solution 3 below). 当我运行代码进行调试时,它也会显示在VS 2013中(请参阅下面的解决方案3)。 Using Windows 7. I think it did load the page the very first time I ran it. 使用Windows7。我认为它确实是在我第一次运行该页面时加载的。 After that, it will not load no matter what. 之后,无论如何都不会加载。 (That makes me think it has something to do with a cached copy) (这使我认为它与缓存的副本有关)

Solutions I have tried: I have changed all the relevant and at times unrelevant featurecontrol settings in the registry. 我尝试过的解决方案:我已经更改了注册表中所有相关的功能控件设置,有时甚至不相关。 EX: FEATURE_BROWSER_EMULATION I have also tried modifying the url to be unique. 例如:FEATURE_BROWSER_EMULATION我也尝试将URL修改为唯一。 I have also tried deleting the history, files, caches for iexplorer. 我也尝试过删除iexplorer的历史记录,文件,缓存。 Ex: System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 8") This last solution makes the flash load every time perfectly while I run the program within VS 2013. But when I run the program independently outside of the VS environment, it again refuses to load the flash content. 例如:System.Diagnostics.Process.Start(“ rundll32.exe”,“ InetCpl.cpl,ClearMyTracksByProcess 8”)当我在VS 2013中运行程序时,这最后一个解决方案使Flash每次加载都完美无缺。但是当我运行该程序时独立于VS环境之外,它再次拒绝加载Flash内容。

I am willing to accept all solutions or suggested alternatives to the webbrowser control. 我愿意接受Web浏览器控件的所有解决方案或建议的替代方案。 But the alternative must be a free solution and up to date solution. 但是替代方案必须是免费的解决方案和最新的解决方案。 If possible, I want to stay with the webbrowser control with a solution given. 如果可能的话,我想使用提供解决方案的webbrowser控件。 As a side note: using VB.net to code. 附带说明:使用VB.net进行编码。 If I forgot anything or need more information, let me know. 如果我忘了任何东西或需要更多信息,请告诉我。

Edit: some of the websites in question link: 编辑:一些有问题的网站链接:

http://boowakwala.uptoten.com/kids/boowakwala-island-moving-furnituremove.html
http://boowakwala.uptoten.com/kids/boowakwala-adventures-chocolate-eggsort.html
http://boowakwala.uptoten.com/kids/boowakwala-island-moving-furnituremove.html

If anyone has come to this thread for a solution, sorry it took so long to write it. 如果有人来此线程寻求解决方案,对不起,花了很长时间编写它。

The problem was as I suspected, the webbrowser control uses a cached copy of the web page. 问题出乎我的意料,Web浏览器控件使用了网页的缓存副本。 Thus it will not load the flash content. 因此,它将不会加载Flash内容。 Simple and fast way to fix without code: In Internet Option of iexplorer, under the General tab, select Settings. 无需代码即可简单快速地进行修复:在iexplorer的Internet选项的“常规”选项卡下,选择“设置”。 In the Temporary Internet Files tab, select Every Time I Visit The Webpage. 在“ Internet临时文件”选项卡中,选择“我每次访问网页”。 This will keep the control from loading a cached copy. 这将使控件无法加载缓存的副本。 The flash content will now load as normal. Flash内容现在将正常加载。

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

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