NotifyIcon.BalloonTipClosed 事件

定义

当用户关闭气球状提示时发生。Occurs when the balloon tip is closed by the user.

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

示例

下面的代码示例演示如何处理 BalloonTipClosed 事件。The following code example demonstrates how to handle the BalloonTipClosed event.

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

注解

有关如何处理事件的详细信息,请参阅处理和引发事件For more information about how to handle events, see Handling and Raising Events.

适用于