I would like to, if cleanly possible, start a timer after a textbox length has reached a set amount of characters. The timer interval would be set at 'x' amount of seconds and would call my save feature, but I haven't really done anything with timers and not totally sure how to word this event. Could anyone give me an idea as to the approach?
Gus_19 0 Junior Poster in Training
Recommended Answers
Jump to Post— Reverend Jim 6,681You set the timer interval (the time between tick events) via the Interval property. Set it to 1000 for a one second interval. You start the timer by setting Enabled = True.
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick 'this event fires every Timer.Interval …
Jump to Post— Reverend Jim 6,681The timer will continue to fire every Interval milliseconds until you disable it. If you only want it to fire once then you can set Enabled = False in the Tick handler. The next time you set Enabled = True it will fire again after the interval and then disable …
All 5 Replies
ZeroZen 0 Newbie Poster
Reverend Jim 6,681 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Icone -1 Junior Poster in Training
Gus_19 0 Junior Poster in Training
Reverend Jim 6,681 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.