2
I am using a return to be able to leave the event textEstado_Validate. The problem is that when he leaves this event, he enters the textEstado_KeyDown.
How can I make sure he doesn’t enter any other method and event?
private void textEstado_Validate(object sender, ValidationEventArgs e)
{
Ação...
return;
}
private void textEstado_KeyDown(object sender, KeyEventArgs e)
{
Ação...
}
There is a command for this?
textState is a Textedit, a component of Devexpress
What kind of
textEstado?– carlosfigueira
A text field, edited the description
– Emerson
is the same as Textbox;
– Emerson
A "common" Textbox does not have a validation event that receives a
ValidationEventArgs. @Emerson, if the classValidationEventArgshas a propertyHandled, you can set it totruethat the event stops being propagated.– carlosfigueira
I tried that way, yet he entered the other event.
– Emerson