WebBrowser.StatusTextChanged 이벤트

정의

StatusText 속성 값이 변경되면 발생합니다.

public:
 event EventHandler ^ StatusTextChanged;
[System.ComponentModel.Browsable(false)]
public event EventHandler StatusTextChanged;
[<System.ComponentModel.Browsable(false)>]
member this.StatusTextChanged : EventHandler 
Public Custom Event StatusTextChanged As EventHandler 
Public Event StatusTextChanged As EventHandler 

이벤트 유형

EventHandler
특성

예제

다음 코드 예제에서는 이벤트에 대 StatusTextChanged 한 처리기를 사용 하 여 Internet Explorer에서와 비슷한 컨트롤에 대 한 WebBrowser 상태 표시줄을 구현 하는 방법을 보여 줍니다. This example requires that your form contains a WebBrowser control called webBrowser1 and a StatusBar control called StatusBar1.

전체 코드 예제를 보려면 방법: Windows Forms 애플리케이션에 웹 브라우저 기능 추가합니다.

// Updates StatusBar1 with the current browser status text.
void WebBrowser1_StatusTextChanged( Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
   this->StatusBar1->Text = WebBrowser1->StatusText;
}
// Updates the status bar with the current browser status text.
private void webBrowser1_StatusTextChanged(object sender, EventArgs e)
{
    toolStripStatusLabel1.Text = webBrowser1.StatusText;
}
' Updates the status bar with the current browser status text.
Private Sub webBrowser1_StatusTextChanged( _
    ByVal sender As Object, ByVal e As EventArgs) _
    Handles webBrowser1.StatusTextChanged

    toolStripStatusLabel1.Text = webBrowser1.StatusText

End Sub

설명

속성 값이 변경되면 이 이벤트를 처리하여 상태 표시줄을 StatusText 업데이트합니다.

이벤트 처리에 대한 자세한 내용은 이벤트 처리 및 발생 을 참조하십시오.

적용 대상

추가 정보