Results 1 to 4 of 4

Thread: VB - Time Windows Has Been Running

  1. #1

    Thread Starter
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    VB - Time Windows Has Been Running

    Add a label (Label1) to your form and add the following code :

    VB Code:
    1. Private Declare Function GetTickCount& Lib "kernel32" ()
    2.  
    3. Private Sub Form_Load()
    4.  Label1.Caption = GetTickCount
    5. End Sub
    Last edited by manavo11; Mar 12th, 2003 at 04:35 PM.


    Has someone helped you? Then you can Rate their helpful post.

  2. #2
    Registered User
    Join Date
    Jun 1999
    Location
    palmdale, ca. USA
    Posts
    150

    how...

    would you format that to get something usable ???

  3. #3

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by MartinLiss
    Doesn't GetTickCount need to be reset after midnight?
    From MSDN :
    The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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