Evento Notification.BalloonChanged
Aggiornamento: novembre 2007
Si verifica quando viene visualizzata o nascosta una finestra di messaggio.
Spazio dei nomi: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)
Sintassi
'Dichiarazione
Public Event BalloonChanged As BalloonChangedEventHandler
'Utilizzo
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 non supporta gli eventi.
Note
Questo evento si verifica ogni volta che si imposta la proprietà Visible.
Per ulteriori informazioni sulla gestione di eventi, vedere Utilizzo degli eventi.
Esempi
Nell'esempio di codice riportato di seguito viene illustrato l'utilizzo di questo evento per stabilire se è stata creata una notifica. Questo esempio di codice fa parte di un esempio più esaustivo fornito per 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.
}
}
Autorizzazioni
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Piattaforme
Windows Mobile per Pocket PC
.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.
Informazioni sulla versione
.NET Compact Framework
Supportato in: 3.5, 2.0