I use C#. I have a Windows Form with an edit box and a Cancel button. The edit box has code in validating event. The code is executed every time the edit box loses focus. Wh
This work for me.
private void btnCancelar_MouseMove(object sender, MouseEventArgs e) { foreach (Control item in Form.ActiveForm.Controls) { item.CausesValidation = false; } }