View Single Post
Old Jun 8th, 2006, 6:04 AM   #9
KTiger
Newbie
 
KTiger's Avatar
 
Join Date: May 2006
Location: Narvik, Norway
Posts: 22
Rep Power: 0 KTiger is on a distinguished road
Oki here it is, this code DID work with Windows 98 and I haven't tested it with XP.

Put this in modul-section
Option Explicit

'Time Device
Public Declare Function GetTickCount& Lib "kernel32" ()
and put this in either form or module
Dim fTime As Long
fTime = GetTickCount&
And just repeat GetTickCount to get new tick, ie: 7893244643
basically it's number of ticks since 1970 1.january, and 1 tick = 1 millisecond

I hope this works for you, and remember this is VB6 code (not VB.net).
__________________
To sell your own books it's like selling a piece of your soul. Kim
KTiger is offline   Reply With Quote