WebBrowser control - enter and keep offline mode

情到浓时终转凉″ 提交于 2019-12-12 02:26:58

问题


I would like to manually load HTML into a web browser control and make sure it does not create any internet traffic, so just show the content to the best of its abilities.

As specified in MSDN, WebBrowser.IsOffline is read-only.

Is there a way to set it (without using reflection hacks)?

Or do I have to resort to using a 3rd party control for this:

  • The most complete C# Webbrowser wrapper control

回答1:


You can set WebBrowser.AllowNavigation to False.

Whether the control can navigate to another page after its initial page has been loaded.



来源:https://stackoverflow.com/questions/25488569/webbrowser-control-enter-and-keep-offline-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!