some times we have to do different validations on our form, but whenever we want to close or cancel the current operations and if suppose focus is under validated textbox of not to allow empty string at this time our cancel or close button will not execute, we will have to first fulfil validations of control in which there is control for avoiding this we have CausesValidations property described in the blog