I want to check if a problem that sometimes show up and sometimes not still happen.
So instead closing manual the application and start again all the time is there anything that can make it automatic untill the problem will show up ? Or something that will simulate Form Closing.
I want to check if a problem that sometimes show up and sometimes not
Share
You can try this
Use a Timer to call a method at certain intervalls. When the Timer ticks, look if a process with the given name exists. If it exists close its main window (do not just kill it). If it does not exist, start it.