The following code example shows where to add code for adding functionality to an application when a balloon is visible. The BalloonChangedEventArgs class contains a Visible property that reflects the value of the Visible property of the Notification class. This code example is part of a larger example provided for the Notification class.
// You can use the BalloonChanged event// created by tracking each time the notification is made visible.privatevoid 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.