I want to make a Windows Form Application which only shows a timer as:
xx days xx hours xx minutes xx seconds
- No option for setting the timer or anything, i want to do that in the code However, the problem is i want it to count down from current time (DateTime.Now) to a specific date. So i end up with the time left as TimeSpan type. I'm now in doubt how to actually display this, so it's actually working, and updating (counting down) Can't seem to find a tutorial that helps me, so i hope i may be able to get some help here :)
DateTime
instead of aTimeSpan
, you can donew DateTime(yourTimeSpan.Ticks)
to get one back. But it sounds like aTimeSpan
may actually be easier to use in your case, because it has properties for each of the days, hours, minutes, and seconds labels you have in your form. – Lysine