ReadyState Property

WebBrowser.ReadyState Property

 

Gets a value indicating the current state of the WebBrowser control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public WebBrowserReadyState ReadyState { get; }

Exception Condition
ObjectDisposedException

This WebBrowser instance is no longer valid.

InvalidOperationException

A reference to an implementation of the IWebBrowser2 interface could not be retrieved from the underlying ActiveX WebBrowser control.

Use the ReadyState property to retrieve the specific state of the WebBrowser control when you need more information than the IsBusy property provides.

When the WebBrowser control does not contain a document, the value of this property is WebBrowserReadyState.Uninitialized. Other values indicate the control state when it navigates to a new document. These values include WebBrowserReadyState.Loading, WebBrowserReadyState.Loaded, WebBrowserReadyState.Interactive, and WebBrowserReadyState.Complete.

SecurityPermission

for immediate callers to use this control. Demand value: LinkDemand; NIB: Named Permission Sets: FullTrust.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft