Im trying to write a program that will continually look for a file every say 5 minutes. Once it finds the file it will do some sort of processing. I think im just having a brainfart.
The way i do it now it endlessly loops to start and everything freezes lol. Here is how im thinking of hnadling it...
Private Sub moveESM_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Flag_Run = False
While (Flag_Run <> True)
Timer1.Enabled = True
End While
End Sub
as you can tell this will not work it keeps looping endlessly. Some suggestions would help. Thanks
The way i do it now it endlessly loops to start and everything freezes lol. Here is how im thinking of hnadling it...
Private Sub moveESM_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Flag_Run = False
While (Flag_Run <> True)
Timer1.Enabled = True
End While
End Sub
as you can tell this will not work it keeps looping endlessly. Some suggestions would help. Thanks