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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 21, 2014, 2:37 PM
label8.Text = ts.ToString("mm\\:ss");
Ajay KadianPosted Mar 21, 2014, 1:22 PM
VulpesPosted Mar 21, 2014, 1:07 PM
The following is off the top of my head and therefore untested:
Ajay KadianPosted Mar 21, 2014, 12:26 PM
VulpesPosted Mar 21, 2014, 11:35 AM
If you're wanting to do a timeout, perhaps a countdown would be more suitable?