Not validates when clicks Cancel button

  • Thread starter Alhambra Eidos Kiquenet
  • 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
 
C

Chris Dunaway

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top