We help IT Professionals succeed at work.

pause in VB

ditkis
ditkis asked
on
is there a way to 'pause' in VB without using a timer control?
Comment
Watch Question

CERTIFIED EXPERT
Commented:
Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)

'Using:
Sleep 1000 'pause for 1 sec.

Cheers
Ryan ChongSoftware Tead Lead / Business Analyst / System Analyst / Data Engineer
CERTIFIED EXPERT

Commented:
You can try to use the Sleep API:

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

'Hope will help.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.