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:53:15
 
 
À
11/02/2008 14:44:12
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:
01291584
Vues:
8
Set to forms 'CausesValidation' to false.
In the FormClosing event set the FormClosingEventArgs.Cancel to false;


That was too much code < s >. All I needed was this:
e.Cancel = false
Apparently the validation causes it to be set to true under the hood.

HTH (Whatja messing with this C# stuff for anyway <g>)

I have already done a couple of small ASP.NET projects over the years. However, they have been too few and far between for me to remember anything that I learned doing them - plus the code was crap :-(. So I am taking a C# course at the university here because I have had a lot of requests for me to do C# work and my big VFP projects are winding down.

Andy and I plan to retire in 5 years, so I am adding to my skill set so we can protect our capital and add to the retirement nest egg as we wind down. Andy hasn't done much VFP (except for his personal use and to write tools) - he has been pretty much a SQL Server DBA for the last 3 years...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform