Unwanted Retriggering of Textbox Events
Posted
by user348917
on Stack Overflow
See other posts from Stack Overflow
or by user348917
Published on 2010-05-24T12:25:18Z
Indexed on
2010/05/24
12:31 UTC
Read the original article
Hit count: 143
This is one of those "seems obvious" as how to do, but came across interesting side effect in implementing. I'm trying to keep two text boxes syncronized when information is updated. In this example, I will be using txtStartDate and txtEndDate. If the txtStartDate is changed, then the txtEndDate should should be updated. Likewise, if the txtEndDate changes, I want the txtSartDate to be updated. The side effect I'm comming across is that when I set them up under the TextChanged event for both, the events seem to retrigger against each other indefinately (endless loop?). Am I using the wrong event? Is this a task for a delegate?
© Stack Overflow or respective owner