Share via


NotifyIcon.BalloonTipClosed 事件

定義

當使用者關閉氣球提示時發生。

public:
 event EventHandler ^ BalloonTipClosed;
public event EventHandler BalloonTipClosed;
public event EventHandler? BalloonTipClosed;
member this.BalloonTipClosed : EventHandler 
Public Custom Event BalloonTipClosed As EventHandler 

事件類型

範例

下列程式碼範例示範如何處理 BalloonTipClosed 事件。

void notifyIcon1_BalloonTipClosed(object sender, EventArgs e)
{
    MessageBox.Show("The balloon tip is now closed.");
}
Sub notifyIcon1_BalloonTipClosed(ByVal sender As Object, _
    ByVal e As EventArgs) Handles notifyIcon1.BalloonTipClosed

    MessageBox.Show("The balloon tip is now closed.")

End Sub

備註

如需如何處理事件的詳細資訊,請參閱 處理和引發事件

適用於