更新时间:2023-12-06 12:24:16
请参阅以下讨论:
http://***.com/questions/7827792/using- the-res-protocol-with-system-windows-forms-webbrowser [ http://***.com/questions/1254605 /ms-webbrowser-embedded-html-resource-res-protocol [ ^ ].
但是,我不确定您是否完全需要使用WebBroser
.如果您想使用资源将其呈现为HTML,也许这就是您所需要的?在这种情况下,会有更好的组件.
请参阅此CodeProject文章:您将使用的专业HTML渲染器 [ ^ ].
我测试过这个东西,它几乎是完美的.—SA
Please see these discussions:
http://***.com/questions/7827792/using-the-res-protocol-with-system-windows-forms-webbrowser[^],
work-around is demonstrated here: http://***.com/questions/1254605/ms-webbrowser-embedded-html-resource-res-protocol[^].
However, I''m not sure you need to useWebBroser
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