I am using a return
to be able to exit the textEstado_Validate
event. The problem is that when it exits this event, it enters textEstado_KeyDown
.
How can I prevent it from going into any other methods and events?
private void textEstado_Validate(object sender, ValidationEventArgs e)
{
Ação...
return;
}
private void textEstado_KeyDown(object sender, KeyEventArgs e)
{
Ação...
}
Is there a command for this?
Text is a TextEdit, component of DevExpress