Adam Smith
New member
Hello all,
I was trying to make a count down timer in visual basic where the user can enter hours, minutes, and seconds and then the timer will count down until all the text fields are equal to 0 when a message box alerting them that the timer is finished appears but in the coding I'm having some trouble.
I declared hours,minutes and seconds as integer(s) and then basically said that if seconds = 0 them minutes -= 1 and so on but If the user enters hours and no minutes or seconds or minutes and no hours or seconds then the code doesn't work.
HELP!
If you decide to answer please leave an example on how it works and such.
Thanks SO much
I was trying to make a count down timer in visual basic where the user can enter hours, minutes, and seconds and then the timer will count down until all the text fields are equal to 0 when a message box alerting them that the timer is finished appears but in the coding I'm having some trouble.
I declared hours,minutes and seconds as integer(s) and then basically said that if seconds = 0 them minutes -= 1 and so on but If the user enters hours and no minutes or seconds or minutes and no hours or seconds then the code doesn't work.
HELP!
If you decide to answer please leave an example on how it works and such.
Thanks SO much