Tutorials‎ > ‎VB Tutorials‎ > ‎

Pause or Delay Your Applicaiton

posted Jan 14, 2010, 8:32 PM by Tim Key   [ updated Jan 14, 2010, 8:33 PM ]

Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)


Public Sub Pause(ByVal seconds As Single)
    Call Sleep(Int(seconds * 1000#))
End Sub

'Add the code snippet above and then call the Pause() procedure

Comments