How to pause/sleep the application for the given number of milliseconds
Posted on January 5, 2009
The following vb6 code will help to pause the application for given number of milliseconds. The code uses Sleep API.
1 2 3 4 5 6 7 8 | 'System & API - How to pause/sleep the application for the given number of milliseconds Option Explicit Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Public Sub Pause(ByVal seconds As Single) Call Sleep(Int(seconds * 1000#)) End Sub |
Related posts:
- How to Pause the application without using Sleep
- How to handle Size & Position of Console Application with Windows Application in VB6
- How to use timer control for more than 65,535 milliseconds
- How to Crash your application (in two ways)
- How to terminate an application
- How to Retrieve The Length Of WAV, AVI And MIDI Files
- How to measure how much time it takes to execute a function or a block of code or event a statement
- How to open any file with its default application
- How to Set Mouse Double Click Time
- [VB 6.0] Minimiser una application – By H4ckG3n









February 12th, 2009 - 16:54
Is there anyway you could tell a novice how to implement this? I am hoping to put it into an access form.