Represents the host window of a WebBrowser control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Thetype exposes the following members.
|Dispose()||Infrastructure. Releases all resources used by the WebBrowserSiteBase. (Inherited from WebBrowserSiteBase.)|
|Dispose(Boolean)||Infrastructure. Releases the unmanaged resources used by the WebBrowserSiteBase and optionally releases the managed resources. (Inherited from WebBrowserSiteBase.)|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
If you are familiar with OLE development using the unmanaged WebBrowser ActiveX control, you can extend the functionality of the Windows Forms WebBrowser control, which is a managed wrapper for the ActiveX control. You can use this extensibility, for example, to customize the browser shortcut menu and shortcut keys or to provide a custom security configuration for hosted documents.
To use this feature, implement classes that inherit from the WebBrowser and classes. The unmanaged WebBrowser ActiveX control uses the protected WebBrowser.CreateWebBrowserSiteBase method to retrieve extensibility interfaces implemented by the class. Override the CreateWebBrowserSiteBase method to return an instance of your own class that inherits from the class. The class provides a default implementations of the OLE IDocHostUIHandler interface. For more information, see IDocHostUIHandler Interface in the MSDN library. You can provide your own implementation of this interface or implement any other WebBrowser ActiveX control interface in order to customize the behavior of the control. For more information, see WebBrowser Control in the MSDN library.
If you provide your own implementation for any IDocHostUIHandler members, you must implement all the members of that interface.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.