can you add hours mins and secs the same way and could the timer be set by having a button open a set timer function (instead of the combo boxes and also a reset timer button? Ok so I have added almost same as you but i have 3 buttons and 3 combo boxes start stop reset and hours mins seconds just not sure the codes
Would you know how to grey out the stop button when the time reaches 0. This way the user doesn't have to first click stop then start to restart the timer.
Ok I went back to just minutes and seconds but would like to add hours nothing I tried seem to work. Ok i have added all code like said but for hours minutes and seconds and removed the idea of reset, Nothing shows in the text box when selected and click start and no error meaasges textbox just show 00:00:00 private void timer1_Tick(object sender, EventArgs e) { if (totalSeconds > 0) { totalSeconds--; int hours = totalSeconds / 3600; int minutes = totalSeconds / 60; int seconds = totalSeconds - (hours * 3600 - minutes * 60); this.label3.Text = hours.ToString() + ":" + minutes.ToString() + ":" + seconds.ToString() + ":";
The code file would be very helpful.
This was exactly what I needed thanks man.
can you add hours mins and secs the same way and could the timer be set by having a button open a set timer function (instead of the combo boxes and also a reset timer button? Ok so I have added almost same as you but i have 3 buttons and 3 combo boxes start stop reset and hours mins seconds just not sure the codes
any way to change it so when it goes down to 9 and below it stays in the last digital instead of moving up?
In addition, can you make a tutorial on how to compare a specified time, and d
Computer time, thanks again 🙂..
that helped me a lot, but how can you add a second user so a 2 usernames and 2 passwords?
Thanks for making this great video. Question; Would you know how I could have an audible alert when the timer reaches 0?
Figured it out by adding this script above the MessageBox script. System.Media.SystemSounds.Hand.Play();
I’m trying to make a quick game for a project that’s timer based. Essentially complete a level within a minute. Was this the same approach you did?
Hi, thanks for the video. Can you please make a tutorial on how to include hour. Thanks 😀.
hi did you figure out how to add hours?
how can you add a reset Button?
how to include the milliseconds?
Would you know how to grey out the stop button when the time reaches 0. This way the user doesn't have to first click stop then start to restart the timer.
this.button1.Enabled = false; in the function
Many thanks!
Can we just download it?
Can you upload the code as well? Thanks!
Salamat..,
thanx brother :)
Hi sir, how to create a countdown clock including the hour, min, and seconds ?
hi, i know its alongtime since your comment but did you figure out how to input the hours?
So i'm streamer , i have 1 monitor . I need my popout comment always on front of game ,like countdown.
best brother best
Ok I went back to just minutes and seconds but would like to add hours nothing I tried seem to work.
Ok i have added all code like said but for hours minutes and seconds and removed the idea of reset, Nothing shows in the text box when selected and click start and no error meaasges textbox just show 00:00:00 private void timer1_Tick(object sender, EventArgs e)
{
if (totalSeconds > 0)
{
totalSeconds--;
int hours = totalSeconds / 3600;
int minutes = totalSeconds / 60;
int seconds = totalSeconds - (hours * 3600 - minutes * 60);
this.label3.Text = hours.ToString() + ":" + minutes.ToString() + ":" + seconds.ToString() + ":";