CausesValidation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?REM=?=

    #1

    CausesValidation

    Hi all, I've a form with a Cancel Button. The button has its CausesValidatio n
    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
  • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

    #2
    RE: CausesValidatio n

    DC,



    Kerry Moorman


    "DC" wrote:
    Hi all, I've a form with a Cancel Button. The button has its CausesValidatio n
    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

    Comment

    Working...