WebBrowser::StatusTextChanged Event

 

Occurs when the StatusText property value changes.

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

public:
[BrowsableAttribute(false)]
event EventHandler^ StatusTextChanged {
	void add(EventHandler^ value);
	void remove(EventHandler^ value);
}

Handle this event to update a status bar when the value of the StatusText property changes.

For more information about handling events, see Handling and Raising Events.

The following code example demonstrates how to use a handler for the StatusTextChanged event to implement a status bar for the WebBrowser control similar to the one in Internet Explorer. This example requires that your form contains a WebBrowser control called webBrowser1 and a StatusBar control called StatusBar1.

For the complete code example, see How to: Add Web Browser Capabilities to a Windows Forms Application.

// Updates StatusBar1 with the current browser status text.
void WebBrowser1_StatusTextChanged( Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
   this->StatusBar1->Text = WebBrowser1->StatusText;
}

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: