Each text box will raise an event TextChangedwhen the content changes. However, this requires a subscription to each event.
The good news is that you can sign up for an event the same way several times. The handler has a parameter senderthat you can use to determine which of the 30 text fields the event actually raised.
You can also use GotFocus and LostFocus to track actual changes. You need to keep the original value on GotFocus, and then compare with the current value on LostFocus. This turns around the problem of two events TextChangedthat cancel each other out.
source
share