Avoid validation for close or cancel button

 private void btnClose_Click(object sender, EventArgs e)
        {            
            tb.CausesValidation = false;  //Validating event of textbox's will not occur            
            this.Close();
        }