Windows Webbrowser控件. res://ieframe.dll错误 [英] Windows Webbrowser control. res://ieframe.dll error

查看:408
本文介绍了Windows Webbrowser控件. res://ieframe.dll错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

请帮我.我在Windows窗体上使用Webbrowser控件.我的问题是,当执行Webbrowser1.Navigate(url)时,此文本"res://ieframe.dll/dnserrordiagoff_webOC.htm# u"会添加到原始URL的开头.我看起来好像是在Navigate方法中发生的,因为当我调试地址时,正确的地址直到调用teh navigation方法的行为止.

预先感谢您,非常感谢您的帮助.

Hi All

Please help me. I am using the Webbrowser control on on windows form. The problem I have is that when Webbrowser1.Navigate(url) is executed, this text "res://ieframe.dll/dnserrordiagoff_webOC.htm# u" is addedat the beginning of my original url. I t looks like it happenes within teh Navigate method, because when I debug the address is correct up to the line that calls teh navigate method.

Thank you in advnced, I will greatly appreciate your assistance.

推荐答案

请参阅以下讨论:
http://stackoverflow.com/questions/7827792/using- the-res-protocol-with-system-windows-forms-webbrowser [ http://stackoverflow.com/questions/1254605 /ms-webbrowser-embedded-html-resource-res-protocol [ ^ ].

但是,我不确定您是否完全需要使用WebBroser.如果您想使用资源将其呈现为HTML,也许这就是您所需要的?在这种情况下,会有更好的组件.

请参阅此CodeProject文章:您将使用的专业HTML渲染器 [ ^ ].

我测试过这个东西,它几乎是完美的.

—SA
Please see these discussions:
http://stackoverflow.com/questions/7827792/using-the-res-protocol-with-system-windows-forms-webbrowser[^],
work-around is demonstrated here: http://stackoverflow.com/questions/1254605/ms-webbrowser-embedded-html-resource-res-protocol[^].

However, I''m not sure you need to use WebBroser at all. If you want to use resource to render it as HTML, maybe this is all you need? In this case, there is much better component.

Please see this CodeProject article: A Professional HTML Renderer You Will Use[^].

I tested this thing, it is nearly perfect.

—SA


这篇关于Windows Webbrowser控件. res://ieframe.dll错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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