README.md
December 4, 2022 ยท View on GitHub
Description
A delay timer so easy, this paragraph is longer. I had to submit this easy code because it is not on this website. Uses no API, and it is very handy!!
More Info
Make a form with a command button ont it. Paste the code into the command button. This sample has a 3 second delay, then you hear a beep.
| Submitted On | |
| By | Patrick K. Bigley |
| Level | Unknown |
| User Rating | 4.2 (42 globes from 10 users) |
| Compatibility | VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script |
| Category | Math/ Dates |
| World | Visual Basic |
| Archive File |
Source Code
Private Sub Command1_Click()
Dim Start As Long
Start = Timer
Do While Timer < Start + 3 'a 3 second delay (Change to any numer you want)
DoEvents ' Yield to other processes.
Loop
Beep
End Sub