README.md

December 4, 2022 ยท View on GitHub

A Super Easy Delay Timer

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
ByPatrick K. Bigley
LevelUnknown
User Rating4.2 (42 globes from 10 users)
CompatibilityVB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script
CategoryMath/ Dates
WorldVisual 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