VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



helpful sleep API call to suspend actions

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 Declarations
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Rate helpful sleep API call to suspend actions

Private Sub Form_Load()
Call Sleep(1000)
End Sub
'This code example will "sleep" for 1 second, and then load the form.

Download this snippet    Add to My Saved Code

helpful sleep API call to suspend actions Comments

No comments have been posted about helpful sleep API call to suspend actions. Why not be the first to post a comment about helpful sleep API call to suspend actions.

Post your comment

Subject:
Message:
0/1000 characters