Avoid validation for close or cancel buttonMayur Gujrathi15yPublished Apr 20, 2011, 12:00 AMUpdated Apr 20, 2011, 1:53 AM4k00Reactions×25Blogprivate void btnClose_Click(object sender, EventArgs e) { tb.CausesValidation = false; //Validating event of textbox's will not occur this.Close(); }CommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.