private void TxtEmail_Leave(object sender, EventArgs e) { if (!Validaciones.EsEmail(txtEmail.Text)) { MessageBox.Show("Email no válido, el email debe tener el formato: [email protected].", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); txtEmail.SelectAll(); txtEmail.Focus(); } }