Trapping Validation for Undo operations

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an undo button on my form. If the user presses the button, validation fires for the control with the focus. I would like to trap this scenario, and turn off the validation if the undo button is pressed.
 
Joe Lalor said:
I have an undo button on my form. If the user presses the button,
validation fires for the control with the focus. I would like to trap this
scenario, and turn off the validation if the undo button is pressed.

There is a property called CausesValidation that controls what you want.
Set it to false on your Button control, and it should work.

Jeremy
 
Back
Top