Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CausesValidation property
Message
De
24/11/2006 16:21:06
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
CausesValidation property
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01172348
Message ID:
01172348
Vues:
60
I have an unbound mmTextbox control on my form. I have validation code in the Validating() event. I added a mmButton (and then an mmButtonCancel) to the form and set the CausesValidation property to false - If the user cancels, I really don't care what is in the textbox. If the textbox has focus and I click the Cancel button, the validation event still fires.

I thought setting CausesValidation to false would prevent the validation events from firing when the button got focus. What am I missing?

Thanks,
Jeff
Répondre
Fil
Voir

Click here to load this message in the networking platform