|
-
Mar 14th, 2006, 10:58 AM
#1
Thread Starter
Hyperactive Member
[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?
-
Mar 14th, 2006, 11:00 AM
#2
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.
-
Mar 14th, 2006, 11:02 AM
#3
Thread Starter
Hyperactive Member
Re: How can I ignore the vaildation if I click on cancel?
Cool.
It works perfectly.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|