I've got a Program running an endless Loop With a do while events.
Private Sub Timer1_Timer()
Static Temp As Integer
Temp = Temp + 1
Do While DoEvents()
If Temp Mod 2 = 0 Then Exit Do
Loop
End Sub
When the program is running, if you move the form with the mouse. The program locks up.
I know its because of the Do While Do Events.
But how do I stop this happening?
Private Sub Timer1_Timer()
Static Temp As Integer
Temp = Temp + 1
Do While DoEvents()
If Temp Mod 2 = 0 Then Exit Do
Loop
End Sub
When the program is running, if you move the form with the mouse. The program locks up.
I know its because of the Do While Do Events.
But how do I stop this happening?