I've created a short program to open an application at a specific time. It's working but is attempting to open the application multiple times. What should I be doing to control the number of times it is opening? It only needs to open one time.
Here's my code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick Label7.Text = TimeOfDay If TimeOfDay = "12:02:00 AM" Then Process.Start("C:\Program Files (x86)\TestProgram\ftw.exe") End If End Sub
How do I fix this? Any thoughts?
FYI... I'm using Visual Studio 2010/Visual Basic.net
In advance, thanks for the help!