Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Closed Thread
 
Thread Tools Display Modes
Old Mar 3rd, 2006, 9:20 AM   #1
Quagmire
Newbie
 
Quagmire's Avatar
 
Join Date: Feb 2006
Location: Ohio
Posts: 22
Rep Power: 0 Quagmire is an unknown quantity at this point
timer

i was just wondering if you could program a timer that counts down? like a countdown for a game to come out. :banana:
Quagmire is offline  
Old Mar 3rd, 2006, 9:32 AM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
yes..
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline  
Old Mar 3rd, 2006, 9:54 AM   #3
Quagmire
Newbie
 
Quagmire's Avatar
 
Join Date: Feb 2006
Location: Ohio
Posts: 22
Rep Power: 0 Quagmire is an unknown quantity at this point
Well can you tell me how...........
Quagmire is offline  
Old Mar 3rd, 2006, 10:07 AM   #4
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
I'll post the code when I get home, It's rather easy to accomplish!
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline  
Old Mar 3rd, 2006, 10:35 AM   #5
Quagmire
Newbie
 
Quagmire's Avatar
 
Join Date: Feb 2006
Location: Ohio
Posts: 22
Rep Power: 0 Quagmire is an unknown quantity at this point
Quote:
Originally Posted by reggaeton_king
I'll post the code when I get home, It's rather easy to accomplish!
Alright, thanks.
Quagmire is offline  
Old Mar 3rd, 2006, 11:07 AM   #6
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
something like this...

Private Sub Form_Load()
     Timer1.Interval = 1000
     Label1.Caption = "100"
End Sub

Private Sub Timer1_Timer()
     if label1.caption = 0 then
          timer1.enabled = false
          msgbox ("100 secs is up")
     else
          Label1.Caption = label1.caption - 1
     end if
End Sub
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline  
Old Mar 3rd, 2006, 1:48 PM   #7
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
' // Chris Soubasis
' // Timer program
' // 2/5/06
Option Explicit
Dim StartTime As Variant
Dim EndTime As Variant
Dim ElaspedTime As Variant

Private Sub Form_Load()
    cmdStart.Enabled = True
    cmdStop.Enabled = False
End Sub

Private Sub cmdReset_Click()
    cmdStart.Enabled = True
    cmdStop.Enabled = False
    lblStart.Caption = ""
    lblEnd.Caption = ""
    lblElapsed.Caption = ""
End Sub

Private Sub cmdStart_Click()
    StartTime = Now
    lblStart.Caption = Format(StartTime, "hh:mm:ss")
    lblEnd.Caption = ""
    lblElapsed.Caption = ""
    cmdStart.Enabled = False
    cmdStop.Enabled = True
End Sub

Private Sub cmdStop_Click()
    EndTime = Now
    ElaspedTime = EndTime - StartTime
    lblEnd.Caption = Format(EndTime, "hh:mm:ss")
    lblElapsed.Caption = Format(ElaspedTime, "hh:mm:ss")
    cmdStart.Enabled = True
    cmdStop.Enabled = False
End Sub

Private Sub cmdExit_Click()
    End
End Sub
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline  
Old Mar 7th, 2006, 8:34 AM   #8
brandonr
Newbie
 
Join Date: Feb 2006
Posts: 10
Rep Power: 0 brandonr is on a distinguished road
hey quagmire...i've been looking at all your posts and you seem to be obssessed with the banana (not to mention it makes certain "people" very angry). Can we refrain from anymore of these: :banana: . Please, I'm begging you, you're driving me insane!!!!!!!!!!!

(Excessive banana's removed)

If you don't stop I'll sick my army of bananas upon thy flesh!!!! Ha, ha, ha!!!

Last edited by big_k105; Mar 7th, 2006 at 10:15 AM.
brandonr is offline  
Old Mar 7th, 2006, 8:37 AM   #9
brandonr
Newbie
 
Join Date: Feb 2006
Posts: 10
Rep Power: 0 brandonr is on a distinguished road
Hey, that is kind of addicting...


(Excessive banana's removed)

Last edited by big_k105; Mar 7th, 2006 at 10:14 AM.
brandonr is offline  
Old Mar 7th, 2006, 8:43 AM   #10
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
Is that's supposed to be funny, or is it spamming the forum, or are you just retarted, or...

Tell us, and then leave.
Polyphemus_ is offline  
Closed Thread

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:24 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC