Computing.Net > Forums > Programming > Timmers Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Timmers Help

Reply to Message Icon

Name: BJseal91
Date: November 9, 2009 at 16:48:08 Pacific
OS: Windows XP
CPU/Ram: 256MB
Product: Toshiba Satellite laptop with intel core 2 duo processor - midnight breeze new
Subcategory: C/C++
Comment:

I am making a program at the moment and the last thing to do is make a coutdown time from 2 hours example 2:00:00 1:59:59 ect and stop when it gets to 0 and this needs to continue at the same time in each of the Diffrent Windows I am using Visual Basic 2008 Express Edition would anyone know the code to use and how i could do this many thanks BJseal91



Sponsored Link
Ads by Google

Response Number 1
Name: nbrane
Date: November 10, 2009 at 18:18:29 Pacific
Reply:

'i can't write the whole shebang (designing the windows,
'setting label captions etc.). this snippet just does the
'timer stuff. There are numerous ways to do this, but
'here's one way to do it:
dim dd as Date
dd="02:00:00"
timr:
sleep 1000
dateadd("s",-1,dd)
dd=left(Cstr(dd),8)
if dd="12:00:00" then dd="00:00:00"
window1.label1.caption=dd
window2.label1.caption=dd
window3.label1.caption=dd... dah dah dah for all windows
if dd<>"00:00:00" then goto timr


1

Response Number 2
Name: BJseal91
Date: November 11, 2009 at 03:14:59 Pacific
Reply:

Thanks for your help some of that snipit worked and got it to work good answer thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Timmers Help

Javascript help www.computing.net/answers/programming/javascript-help/7520.html

Batch File Formmatting Help, Please www.computing.net/answers/programming/batch-file-formmatting-help-please/14040.html

Help With Visual Studio Express www.computing.net/answers/programming/help-with-visual-studio-express/14611.html