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.