Home All Groups Group Topic Archive Search About
Author
28 Nov 2007 4:12 PM
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

Author
28 Nov 2007 6:03 PM
Kerry Moorman
DC,

http://www.thescripts.com/forum/thread512556.html

Kerry Moorman


Show quoteHide quote
"DC" wrote:

> 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