Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use EXIT button without interference from LEAVE e
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01053590
Message ID:
01053663
Vues:
15
Cecil,

How are you exiting the application? By clicking on a Button? If so, Chris's suggestion should work. By setting that button's .CausesValidation property to false, and having the button's .Click event handler execute the Application.Exit() method, the only event on the text box that should fire *is* the Leave event. If you have moved your code out of the Leave and into the Validating or the Validated event, it will not fire.

If this is not what you're doing, could you post some additional code?

~~Bonnie



>I tried your suggestion but I still have the same problem.
>
>Cecil
>
>>Would it be possible to use the Validating event rather than the Leave event, and set exitButton.CausesValidation = false?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform