TextBox TextChanged not triggered if in a Dialog

Answered
0
0

Hi guys.

I have an issue with TextChanged not being triggered if the TextBox is in a Form launched as a Dialog. It will only trigger once it looses focus.
Can you reproduce this from your side?

Thanks.

Ivan
(Wisej 2.2.54.0 – VS 2019 – C#)

  • You must to post comments
Best Answer
0
0

Hi Ivan,

this is intended behavior.

You can use the ModifiedChanged event if you want to interact directly.

Best regards
Frank

  • You must to post comments
0
0

To clarify, TextChanged fires when the Text property changes. It doesn’t matter where the TextBox is located.

  • Ivan Borges
    I am confused, then. In mine, in a Form either called with Show() or ShowDialog(), I type in it (Text property should have changed then?) and the TextChanged doesn’t trigger. However, the ModifiedChanged triggers all the time.
  • Luca
    • Luca
    • Jul 10, 2021 - 3:19 pm
    Typing doesn’t change the Text property on the server unless you attach key event handler. Otherwise we’d be firing events from the browser on every keystroke. When you leave the field or click somewhere else and any event is fired the server gets updated and the Text property is updated.
  • Ivan Borges
    Got it. Thank you!
  • You must to post comments
0
0

Hi Frank.

Thank you, that did the trick!

Cheers.

Ivan

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.