0

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)..

2
Contributors
1
Reply
18
Views
4 Years
Discussion Span
Last Post by oussama_1
1

set timer to minutes : timer.Interval = 60000
on button click event put timer.start
in timer1_tick event each tick is a 1 minute so count the minutes
count = count + 1 and if count == 2 then alert and stop timer (timer.stop).
good luck

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.