Partager via


BalloonChangedEventArgs.Visible, propriété

Mise à jour : novembre 2007

Obtient ou définit une valeur indiquant si la bulle de message a été modifiée pour être visible.

Espace de noms :  Microsoft.WindowsCE.Forms
Assembly :  Microsoft.WindowsCE.Forms (dans Microsoft.WindowsCE.Forms.dll)

Syntaxe

'Déclaration
Public ReadOnly Property Visible As Boolean
'Utilisation
Dim instance As BalloonChangedEventArgs
Dim value As Boolean

value = instance.Visible
public bool Visible { get; }
public:
property bool Visible {
    bool get ();
}
public function get Visible () : boolean

Valeur de propriété

Type : System.Boolean

true si la propriété Visible sur Notification a la valeur true ; sinon, false.

Notes

Vous pouvez utiliser cette propriété pour déterminer si une notification est affichée ou masquée.

Exemples

L'exemple de code suivant montre où ajouter le code pour ajouter des fonctionnalités à une application lorsqu'une bulle est visible. Cet exemple de code fait partie d'un exemple plus développé 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

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

Voir aussi

Référence

BalloonChangedEventArgs, classe

Membres BalloonChangedEventArgs

Microsoft.WindowsCE.Forms, espace de noms