glasswizzard
Well-known member
- Joined
- Nov 22, 2019
- Messages
- 126
- Programming Experience
- Beginner
Hi, could someone help me to make some code run after one second of inactivity of a textbox.
In more detail, say I have a text box, I want there to be a method (AddToHistory) called every second, if there is any activity in the text box the one-second timer is reset, once the the second has passed and the AddToHistory method called the timer should stop until activity is detected again in the textbox (to prevent the AddToHistory method from being pointlessly called non-stop).
Could someone give me an idea how to do this please?
Thank you
In more detail, say I have a text box, I want there to be a method (AddToHistory) called every second, if there is any activity in the text box the one-second timer is reset, once the the second has passed and the AddToHistory method called the timer should stop until activity is detected again in the textbox (to prevent the AddToHistory method from being pointlessly called non-stop).
Could someone give me an idea how to do this please?
Thank you