问题
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