Compartir a través de


Notification.BalloonChanged (Evento)

Actualización: noviembre 2007

Se produce cuando se muestra o se oculta un globo de mensaje.

Espacio de nombres:  Microsoft.WindowsCE.Forms
Ensamblado:  Microsoft.WindowsCE.Forms (en Microsoft.WindowsCE.Forms.dll)

Sintaxis

'Declaración
Public Event BalloonChanged As BalloonChangedEventHandler
'Uso
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 no admite eventos.

Comentarios

Este evento se produce siempre que se establece la propiedad Visible.

Para obtener más información sobre la forma de controlar eventos, vea Utilizar eventos.

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar este evento para determinar cuando se crea una notificación. Este ejemplo de código forma parte de un ejemplo más amplio referente a la clase 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.
    }

}

Permisos

Plataformas

Windows Mobile para Pocket PC

.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Información de versión

.NET Compact Framework

Compatible con: 3.5, 2.0

Vea también

Referencia

Notification (Clase)

Notification (Miembros)

Microsoft.WindowsCE.Forms (Espacio de nombres)