Hardcode a WAIT command using VB in Forms? -
07-02-2003
, 11:28 AM
Does anyone know how to code a WAIT command using VB in Forms?
For example, I want to move an object (e.g. a command button) using
the LEFT property 1/2 inch every second until it reaches an end point.
I've got a for..next loop built to accomplish this, but it needs to
have a pause or it reaches the destination point too quickly.
Here is my sample code:
Dim i As Integer
For i = 2000 To 10000 Step 1000
cmdMyButton.Left = i
'***NEED PAUSE COMMAND HERE****
Next i
Thanks!!! |