I'm not sure why you need to update the form, but put the code that you have for the button in the timer event. You already have the code, so just create a timer, set it to the desired length and turn it on.
Here is the code you need:
Timer myTimer = new Timer(); myTimer.Elapsed += new ElapsedEventHandler( TimeUp ); myTimer.Interval = 1000; myTimer.Start(); public static void TimeUp( object source, ElapsedEventArgs e ) {
source share