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