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:
01053748
Vues:
7
Okay, I was able to exit, but nothing else worked right. I was not able to do anything but enter data into the first textbox. I have code that isn't hitting, but I think I can figure it out tonight.

Cecil

>OK, a couple of things.

>1) I notice you still have the code in the Leave event, maybe you've removed the delegate to it so it no longer fires, but I just wanted to point that out.

>2) When I tested this, I did an application.Exit() from the Button click, rather than a this.Close(). Since you are using this.Close(), then instead of setting the .CausesValidation property to false for the button, you need to set the Form's .CausesValidation property instead. That should take care of your problem.

>~~Bonnie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform