You can access, and write to, the HTML behind a web page being displayed by the WebBrowser using the WebBrowser.DocumentText property.
Wednesday, July 19, 2006
The WebBrowser control is a resource-intensive control. Be sure to call the Dispose method when you are finished using the control to ensure that all resources are released in a timely fashion. You must call the Dispose method on the same thread that attached the events, which should always be the message or user-interface (UI) thread.
The WebBrowser control is primarily a managed wrapper of the WebBrowser ActiveX object. There are four main unmanaged interfaces that are wrapped in one form or another:
- IWebBrowser2 - The core WebBrowser interface.
- DWebBrowserEvents2 - The WebBrowser events.
- IDocHostUIHandler - Provides advanced functionality such as: custom context menus, disabling accelerators & providing custom objects to the html script. The WebBrowser control QI's it's Site to obtain this interface.
- IinternetSecurityManager - Provides custom security for the browser control.