NotifyIcon.BalloonTipShown イベント

定義

バルーン ヒントが画面に表示されるときに発生します。

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

イベントの種類

次のコード例では、このメンバーの使用方法を示します。 この例では、イベント ハンドラーがイベントの BalloonTipShown 発生を報告します。 このレポートは、イベントが発生したタイミングを知るのに役立ち、デバッグに役立ちます。 複数のイベントまたは頻繁に発生するイベントを報告するには、 を Console.WriteLine に置き換えるかMessageBox.Show、複数行TextBoxにメッセージを追加することを検討してください。

コード例を実行するには、 という名前NotifyIcon1の型NotifyIconのインスタンスを含むプロジェクトに貼り付けます。 次に、イベント ハンドラーが イベントに関連付けられていることを確認します BalloonTipShown

private void NotifyIcon1_BalloonTipShown(Object sender, EventArgs e) {

   MessageBox.Show("You are in the NotifyIcon.BalloonTipShown event.");
}
Private Sub NotifyIcon1_BalloonTipShown(sender as Object, e as EventArgs) _ 
     Handles NotifyIcon1.BalloonTipShown

   MessageBox.Show("You are in the NotifyIcon.BalloonTipShown event.")

End Sub

注釈

イベントを処理する方法の詳細については、次を参照してください。処理とイベントの発生します。

適用対象