change UI to UI.WinForms
This commit is contained in:
17
Pilz.UI.WinForms/HelpfulFunctions.vb
Normal file
17
Pilz.UI.WinForms/HelpfulFunctions.vb
Normal file
@@ -0,0 +1,17 @@
|
||||
Imports System.Windows.Forms
|
||||
|
||||
Public Module HelpfulFunctions
|
||||
|
||||
Public Sub Sleep(milliseconds As Integer)
|
||||
Dim stopw As New Stopwatch
|
||||
|
||||
stopw.Start()
|
||||
|
||||
Do While stopw.ElapsedMilliseconds < milliseconds
|
||||
Application.DoEvents()
|
||||
Loop
|
||||
|
||||
stopw.Stop()
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
Reference in New Issue
Block a user