Hack Forums
[.NET] countdown timer vb.net - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] countdown timer vb.net (/showthread.php?tid=5887905)



countdown timer vb.net - Iera Namhorun - Sep 23, 2018

is there anyone know how to make countdown timer in minute or hours with visual basic ?
so when we open a form or application, countdown timer will work immediately.
I have searched all over the internet, but did not find a tutorial for what I want it to be.
I have tried to make it myself but can only make it in seconds, not hours or minute. 😊


RE: countdown timer vb.net - SaketSaket - Sep 23, 2018

you can search google for this...

check here for sample & change according to your requirement...

http://vbcity.com/blogs/xtab/archive/2011/10/06/how-to-display-a-countdown-timer.aspx


RE: countdown timer vb.net - Vyxn - Sep 24, 2018

(Sep 23, 2018 04:48 PM)Iera Namhorun Wrote:  is there anyone know how to make countdown timer in minute or hours with visual basic ?
so when we open a form or application, countdown timer will work immediately.
I have searched all over the internet, but did not find a tutorial for what I want it to be.
I have tried to make it myself but can only make it in seconds, not hours or minute. 😊

Learn the basic first and you'll going to get it right. 🤝


RE: countdown timer vb.net - Iera Namhorun - Oct 5, 2018

okay thankyou, i will try


RE: countdown timer vb.net - 0xDEAD10CC - Oct 6, 2018

If you can already do it in seconds, then all you need to do is learn the math to calculate hours and minutes

seconds / 3600 = hours (subtract the seconds for each hour from the value)
seconds / 60 = minutes (subtract the seconds for each minute from the value)
Now you're left with remaining seconds.