Tools Links Login

helpful sleep API call to suspend actions

What this API call does is suspend ALL actions for a certain amount of milliseconds(1000 milliseconds=1 second)(duh...)

Original Author: Derek Haas

Assumptions

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)

Code

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

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 83 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.