General information
Category:
The Mere Mortals .NET Framework
Title:
CausesValidation property
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only