Remove components from TimeSpan. Record the current time and date as soon as the button is pressed, and save it in a variable. Then, every second, your timer should calculate the duration from the moment it starts.
IE: DateTime result = DateTime.Now.Subtract (StartingTime);
Then use the parts of the resulting TimeSpan to fill in the fields.
IE: int Hour = result.Hour; (or something like that).
Addition: do not manually calculate every second, because this can lead to an incorrect countdown.
Nicholas hill
source share