Results 1 to 2 of 2

Thread: T-Minus Countdown Timer

  1. #1

    Thread Starter
    Hyperactive Member Jenova's Avatar
    Join Date
    Feb 2006
    Location
    Googleplex
    Posts
    413

    T-Minus Countdown Timer

    Hello,

    How would i go about trying to make a countdown timer, i want a user to be able to enter a time, in time format (hh:mm:ss), and then be able to countdown from it using a timer. An example i have found is the following:

    VB Code:
    1. Label1.Caption = Time -1

    However this only counts down until midnight, if possible i would also like to include miliseconds on to the timer. Any ides or thoughts appreciated.

    Regards

    Jenova

  2. #2
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: T-Minus Countdown Timer

    timeGetTime functions alows you to get the time in milliseconds.

    VB Code:
    1. Private Declare Function timeGetTime Lib "winmm.dll" () As Long
    2.     Dim myTime As Long
    3.         myTime = timeGetTime 'gets the time from workstations startup in ms

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width