Whats the best way/event to use when testing if the textbox text has finished a change of text
Posted
by Spooky2010
on Stack Overflow
See other posts from Stack Overflow
or by Spooky2010
Published on 2010-03-15T03:49:55Z
Indexed on
2010/03/15
3:59 UTC
Read the original article
Hit count: 278
using winforms, c#, vs 2008
So i have textbox1, textbox2 and textbox3 on a winforms.
Textbox3.text = textbox1.text + textbox2.text.
I need textbox3 to be updated whenever the contents of textbox1 and textbox2 have been changed either manually or programmatic.
The problem is if i use textbox textchanged event it keeps firing as one types in the textbox. I need a way to call my method to fill textbox3 after either tb1 or tb2 have been FINISHED changing programmaticly or via key entry, and not fire everytime a letter of text is entered.
How can I have TextBox3 update only when tb1 or tb2 have finished changing?
© Stack Overflow or respective owner