|
-
Nov 20th, 2008, 01:31 PM
#1
Thread Starter
Frenzied Member
[2.0] Button has been clicked
I have some code in a validating event of a text box that is not supposed to be run if the Causes Validation property of a button is set to false. Well it is set to False, I even tried setting it to false at run time but it stills fires the validation event when the form closes to go back to the main form.
Any suggestions?
I did try it in a separate project and it works like it is supposed to.
-
Nov 23rd, 2008, 01:26 PM
#2
PowerPoster
Re: [2.0] Button has been clicked
please show us the code you are using and the steps you used to create the logic/code
-
Nov 23rd, 2008, 03:34 PM
#3
Re: [2.0] Button has been clicked
Are you modifying the contents of the TextBox and then clicking the button directly?
The validation code should not run if the TextBox has focus and then you click the button, i.e. move focus to the button, or any other control that has CausesValidation set to false for that matter.
Hope I haven't misunderstood your problem.
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
|