Results 1 to 15 of 15

Thread: My Wait Function

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Emcrank's Avatar
    Join Date
    Jan 2009
    Posts
    566

    My Wait Function

    If you dont want to use Threading.Thread.Sleep then you may want to use this.
    VB.NET Code:
    1. Private Sub Wait(ByVal Milliseconds As Integer)
    2.         Dim sw As New Stopwatch
    3.         sw.Start()
    4.         Do While sw.ElapsedMilliseconds < Milliseconds
    5.             Application.DoEvents()
    6.         Loop
    7.         sw.Stop()
    8.     End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width