Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to bypass Validating event when closing form?
Message
From
11/02/2008 14:44:12
 
 
To
11/02/2008 12:21:27
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01291525
Message ID:
01291582
Views:
7
This message has been marked as the solution to the initial question of the thread.
Hi,


>The title says it all < s >. What do I need to do to bypass the validation when the user clicks on the close button in the upper right hand corner of the form?
>
>Thanks!

I think (!) :

Set to forms 'CausesValidation' to false.
In the FormClosing event set the FormClosingEventArgs.Cancel to false;

HTH (Whatja messing with this C# stuff for anyway <g>)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform