How to avoid validation for the form closing
-
hi i need to know about "how to avoid the validation on form closing " . when iam put some validations for text boxes when i closing the form it will risises the validation even .
-
hi i need to know about "how to avoid the validation on form closing " . when iam put some validations for text boxes when i closing the form it will risises the validation even .
you can either make a class level variable and set it to true in the form_closing event. then in each event, check if the variable is true and if so...get out of the event. you can also check if me.isdisposed and get out if that is true also...
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous 'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous