System.Threading.Thread.Sleep(1000)
The Wait Window is not an exact feature by feature replica otherwise it wouldn't work when you really need it to One major downside of the FoxPro Wait Window was the way it actually waited in certain scenarios. Also, when the UI was taxed, it would not refresh properly. That is why the SF Wait Window is actually on a separate thread than the thread you are working on.
Me.WaitWindow1.ShowWaitWindow("hi")
System.Threading.Thread.Sleep(5000)For x As Integer = 1 To 5 Me.WaitWindow1.Message = x.ToString System.Threading.Thread.Sleep(1000)Next
Me.WaitWindow1.HideWaitWindow()