I have a question. I want to add to my application persistence.
How do i make if the application is closed to start again?
Currently i am using this code:
If Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName).Length < 2 Then
The problem is.. under form is workign ok, but if i am using it under sub main then the process starts again and again and again leading to computer crash.
Any help would be great.