WebBrowser.StatusTextChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當房產價值變動時 StatusText 發生。
public:
event EventHandler ^ StatusTextChanged;
[System.ComponentModel.Browsable(false)]
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
事件類型
- 屬性
範例
以下程式碼範例示範如何使用事件處理程序 StatusTextChanged ,實作類似 Internet Explorer 控制項的狀態列 WebBrowser 。 這個範例要求你的形式包含WebBrowser一個名為 webBrowser1 的控制項和StatusBar一個名為 的控制項。StatusBar1
完整程式碼範例請參見 「如何:在 Windows 表單應用程式中新增瀏覽器功能」。
// 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 改變時更新狀態列。
如需處理事件的詳細資訊,請參閱 處理和引發事件。