2009-08-29 7 views

Répondre

6

Ajouter un contrôle NotifyIcon au formulaire et un gestionnaire d'événements pour FormClosing:

private void Form1_FormClosing(Object sender, FormClosingEventArgs e) 
{ 
    if (e.CloseReason == CloseReason.UserClosing) 
    { 
     e.Cancel = true; 
     this.Visible = false; 
     this.notifyIcon1.Visible = true; 
    } 
} 
Questions connexes