Tout d'abord, ajoutez un contrôle NotifyIcon au formulaire. Puis câbler l'icône Notify pour faire ce que vous voulez.
Si vous voulez le cacher dans le bac au minimum, essayez ceci.
Private Sub frmMain_Resize(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Resize
If Me.WindowState = FormWindowState.Minimized Then
Me.ShowInTaskbar = False
Else
Me.ShowInTaskbar = True
End If
End Sub
Private Sub NotifyIcon1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseClick
Me.WindowState = FormWindowState.Normal
End Sub
Je vais parfois utiliser le texte de ballon afin d'informer un utilisateur - ce qui se fait en tant que tel
Me.NotifyIcon1.ShowBalloonTip(3000, "This is a notification title!!", "This is notification text.", ToolTipIcon.Info)