Notification.OnBalloonChanged メソッド
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)

Dim e As BalloonChangedEventArgs Me.OnBalloonChanged(e)
- e

BalloonChanged イベントは、Visible プロパティで通知を表示または非表示にするたびに発生します。
イベントが発生すると、デリゲートを使用してイベント ハンドラが呼び出されます。詳細については、「イベントの発生」を参照してください。
OnBalloonChanged メソッドを使用すると、デリゲートを結び付けずに、派生クラスでイベントを処理することもできます。派生クラスでイベントを処理する場合は、この手法をお勧めします。
継承時の注意 派生クラスで OnBalloonChanged をオーバーライドする場合は、登録されているデリゲートがイベントを受け取ることができるように、基本クラスの OnBalloonChanged メソッドを必ず呼び出してください。
バルーンが表示されているときに、アプリケーションに機能を追加するためのコードを追加する場所を次のコード例に示します。BalloonChangedEventArgs クラスには、Notification クラスの Visible プロパティの値を反映する Visible プロパティが含まれています。このコード例は、Notification クラスのトピックで取り上げているコード例の一部分です。
' You can use the BalloonChanged event ' created by tracking each time the notification is made visible. Private Sub OnBalloonChanged(obj As Object, _ balevent As BalloonChangedEventArgs) Handles Notification1.BalloonChanged If balevent.Visible = True Then ' You can add code here to add ' functionality such as user interface ' changes that should occur when ' the notification is displayed. End If End Sub
// You can use the BalloonChanged event // created by tracking each time the notification is made visible. private void OnBalloonChanged(object obj, BalloonChangedEventArgs balevent) { if (balevent.Visible == true) { // You can add code here to add // functionality such as user interface // changes that should occur when // the notification is displayed. } }




Weblioに収録されているすべての辞書からNotification.OnBalloonChanged メソッドを検索する場合は、下記のリンクをクリックしてください。

- Notification.OnBalloonChanged メソッドのページへのリンク