Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to bypass Validating event when closing form?
Message
De
11/02/2008 14:44:12
 
 
À
11/02/2008 12:21:27
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01291525
Message ID:
01291582
Vues:
8
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>)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform