private void ListManage_Validating(object sender, CancelEventArgs e) { if (this.EditCheckBox.Checked) { e.Cancel = true; this.CancelButton.PerformClick(); } } }