Trapping Validation for Undo operations

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.
 
J

Jeremy Todd

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
 

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