by Derek Haas (4 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (39 Votes)
What this API call does is suspend ALL actions for a certain amount of milliseconds(1000 milliseconds=1 second)(duh...)
Assumes
Just dont enter a number that is huge, or else you will be waiting for a very long time
Side Effects
Dont enter a super large number.
API DeclarationsPublic Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Form_Load()
Call Sleep(1000)
End Sub
'This code example will "sleep" for 1 second, and then load the form.