The ModifiedChanged event of the TextBox will only be triggered once.

0
0

The ModifiedChanged event of the control will only be triggered once.

I know ModifiedChanged is a lazy event, But how to make it trigger every time it changes? Thanks.

Wisej version is 2.5.38

  • Luca (ITG)
    Add an event handler. The ModifiedChanged event fires every time the Modified property changes.
  • jingzhou liu
    To be honest, I’m getting confused now. I tried to change the Modified property, but I can’t control the triggering of ModifiedChanged after all four year numbers have been entered, If possible, please give me another small example, Thanks.
  • You must to post comments
0
0

Thank you very much, I can see the effect you described, but the InputType of my Textbox is Date. I hope to trigger it after modifying the four digits of the year,  rather than triggering it every time I enter a year digit.

  • You must to post comments
0
0

Sure, here it is.

I was not entirely clear in my last answer. You’d have to use the TextChanged event in combination with a keyboard event handler to achieve what you want.
See sample and compare the 2 text boxes.

Best regards
Frank

Attachment
  • You must to post comments
0
0

Hi Frank,

If you could give me a small example, it would be very useful to me. Thank you!

  • You must to post comments
0
0

Hi Jingzhou

if you want to have it fired every time, you need to attach to a keyboard event of the textbox as well.

Best regards
Frank

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.