Not validates when clicks Cancel button

  • Thread starter Thread starter Alhambra Eidos Kiquenet
  • Start date Start date
A

Alhambra Eidos Kiquenet

Hi misters,

I have a WinForms with two buttons: AcceptButton, CancelButton and several
textbox. I want to validate some textboxes, and I set Validating event for
them.

I want not validates textboxes when user clicks CancelButton.
How can I do it?

Thanks in advance, greetings
 
I want not validates textboxes when user clicks CancelButton.
How can I do it?

Try setting the CausesValidation property of the CanceButton to False
and see if that helps you.

Chris
 
Back
Top