How can I freeze my application for X millisecond ??
not all the computer but only the application for a very short lap of time ..
Printable View
How can I freeze my application for X millisecond ??
not all the computer but only the application for a very short lap of time ..
Try using the Sleep API. It will only affect your program, an will let you basically suspend it for x number of milliseconds.
Hope this helps.Code:'usage:
Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
Private sub Form_Load()
Call Sleep(5000) 'sleep for 5 seconds.
end sub