CausesValidation

  • Thread starter Thread starter DC
  • Start date Start date
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
 
Back
Top