How to use timer which alert on every 2 minute on a button
I am label which display the current time ( label8.Text = DateTime.Now.ToString("HH:mm:ss"); ) but here i want on a button click the timer would alert on two minute (i.e time out)..
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 21, 2014, 10:37 AM EDT
label8.Text = ts.ToString("mm\\:ss");
VulpesRank #55 · 29.2K reputationPosted Mar 21, 2014, 7:35 AM EDT
If you're wanting to do a timeout, perhaps a countdown would be more suitable?
Ajay Kadian128 reputationPosted Mar 21, 2014, 8:26 AM EDT
VulpesRank #55 · 29.2K reputationPosted Mar 21, 2014, 9:07 AM EDT
The following is off the top of my head and therefore untested:
Ajay Kadian128 reputationPosted Mar 21, 2014, 9:22 AM EDT