Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use EXIT button without interference from LEAVE e
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01053590
Message ID:
01053748
Views:
6
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
Previous
Reply
Map
View

Click here to load this message in the networking platform