Add a label (Label1) to your form and add the following code :
VB Code:
Private Declare Function GetTickCount& Lib "kernel32" () Private Sub Form_Load() Label1.Caption = GetTickCount End Sub
Printable View
Add a label (Label1) to your form and add the following code :
VB Code:
Private Declare Function GetTickCount& Lib "kernel32" () Private Sub Form_Load() Label1.Caption = GetTickCount End Sub
would you format that to get something usable ???
Doesn't GetTickCount need to be reset after midnight?
From MSDN :Quote:
Originally posted by MartinLiss
Doesn't GetTickCount need to be reset after midnight?
Quote:
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.