Notification.BalloonChanged, événement
Mise à jour : novembre 2007
Se produit lorsqu'une bulle de message est affichée ou masquée.
Espace de noms : Microsoft.WindowsCE.Forms
Assembly : Microsoft.WindowsCE.Forms (dans Microsoft.WindowsCE.Forms.dll)
Syntaxe
'Déclaration
Public Event BalloonChanged As BalloonChangedEventHandler
'Utilisation
Dim instance As Notification
Dim handler As BalloonChangedEventHandler
AddHandler instance.BalloonChanged, handler
public event BalloonChangedEventHandler BalloonChanged
public:
event BalloonChangedEventHandler^ BalloonChanged {
void add (BalloonChangedEventHandler^ value);
void remove (BalloonChangedEventHandler^ value);
}
JScript ne prend pas en charge les événements.
Notes
Cet événement se produit chaque fois que vous définissez la propriété Visible.
Pour plus d'informations sur la gestion des événements, consultez Consommation d'événements.
Exemples
L'exemple de code suivant illustre l'utilisation de cet événement pour déterminer à quel moment une notification est créée. Cet exemple de code fait partie d'un exemple plus complet fourni pour la classe 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.
}
}
Autorisations
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.
Plateformes
Windows Mobile pour Pocket PC
Le .NET Framework et le .NET Compact Framework ne prennent pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.
Informations de version
.NET Compact Framework
Pris en charge dans : 3.5, 2.0