|
|
#1 |
|
Banned
Join Date: Jun 04
Location: Center of it all
Posts: 17,901
![]() ![]() ![]() ![]() ![]() ![]() |
Classic VB - How do I Pause my program?
Just like the Sleep command in Quick Basic, Visual Basic also lets you delay the execution of your code.
You do it by calling an API (Application Programming Interface) which are functions that are built into the Windows operating system. The one needed here is the Sleep() API, which will pause execution of your program for the specified number of milliseconds (1000ms=1 second). In this example, the program is paused for 5 seconds when you click the button. VB Code:
A sample project is included below: Last edited by si_the_geek; Aug 31st, 2005 at 12:41 PM. |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|