Skip to content

Instantly share code, notes, and snippets.

@Richienb
Created May 24, 2018 05:17
Show Gist options
  • Save Richienb/ec0249789a23a95595c21c187d570c40 to your computer and use it in GitHub Desktop.
Save Richienb/ec0249789a23a95595c21c187d570c40 to your computer and use it in GitHub Desktop.
Delay in VB.NET
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