Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CausesValidation property
Message
From
24/11/2006 16:21:06
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
CausesValidation property
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01172348
Message ID:
01172348
Views:
59
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
Reply
Map
View

Click here to load this message in the networking platform