WebBrowser.IsBusy Property

Gets a value indicating whether the WebBrowser control is currently loading a new document.

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

[BrowsableAttribute(false)]
public bool IsBusy { get; }

Property Value

Type: System.Boolean
true if the control is busy loading a document; otherwise, false.

ExceptionCondition
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.

If this property is true, you can use the Stop method to halt the current navigation before the new document is fully loaded. Use the ReadyState property to determine the exact navigation state of the WebBrowser control. The IsBusy property value is false when the ReadyState property value is WebBrowserReadyState.Complete.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft