CausesValidation

D

DC

Hi all, I've a form with a Cancel Button. The button has its CausesValidation
property set to false. I've got some Validating events on the form's controls.

When I click the button everything works fine: No Validating event is fired.
But when focus is on any other control and I press ESCAPE (which is supposed
to simulate the cancel button click event) the Validating event is fired.

I guess this is a bug. But if anyone has a solution for the Validating event
not being fire when I press Escape I would appreciate.

TIA
 

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