Evenement "Form_Unload"

Résolu
fred65200 Messages postés 100 Date d'inscription lundi 21 février 2005 Statut Membre Dernière intervention 18 février 2009 - 28 juin 2005 à 18:25
developpez01 Messages postés 1 Date d'inscription dimanche 7 octobre 2007 Statut Membre Dernière intervention 2 août 2008 - 2 août 2008 à 12:09
Bonjour à tous, je cherche la synthaxe pour déclencher un evenement à la fermeture d'un Form.

Pour l'instant je n'ai rien trouvé.

Merci

3 réponses

MorpionMx Messages postés 3466 Date d'inscription lundi 16 octobre 2000 Statut Membre Dernière intervention 30 octobre 2008 57
28 juin 2005 à 18:38
Avec le framework 1.1


this.Closing += new CancelEventHandler(...);





Avec la beta 2.0


this.FormClosing += new FormClosingEventHandler(...);






Mx
3
fred65200 Messages postés 100 Date d'inscription lundi 21 février 2005 Statut Membre Dernière intervention 18 février 2009
28 juin 2005 à 18:52
merci MorpionMx

this.FormClosing += new FormClosingEventHandler(...);

ça marche nickel avec la Beta 2.0
0
developpez01 Messages postés 1 Date d'inscription dimanche 7 octobre 2007 Statut Membre Dernière intervention 2 août 2008
2 août 2008 à 12:09
this.FormClosing += new FormClosingEventHandler(...); Fonctionne parfaitement à condition d'inclure System.Windows.Form;
Merci MorpionMx                       
0
Rejoignez-nous