WebBrowser::ReadyState Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public:
[BrowsableAttribute(false)]
property WebBrowserReadyState ReadyState {
	WebBrowserReadyState 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: