[RESOLVED] How can I ignore the vaildation if I click on cancel?
Hi,
For example, I have a Text1_Validate sub to valid the customerID.
When I click on the new button and click on cancel button, the program will keep prompting to enter a vaild value continously.
Is it possible to set the validate sub to false when the cancel_click is activated?
Re: How can I ignore the vaildation if I click on cancel?
Set the CausesValidation property of the Cancel button to False. When this property is False and the button is clicked, the Validate event of the control that currently has focus will not fire.
Re: How can I ignore the vaildation if I click on cancel?
Cool.
It works perfectly.
Thanks.