Created
May 24, 2018 05:17
-
-
Save Richienb/ec0249789a23a95595c21c187d570c40 to your computer and use it in GitHub Desktop.
Delay in VB.NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub delay(ByVal interval As Integer) | |
Dim sw As New Stopwatch | |
sw.Start() | |
Do While sw.ElapsedMilliseconds < interval | |
Application.DoEvents() | |
Loop | |
sw.Stop() | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment