5
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Gé48
1

i think you should set your application form prop , show in task bar = false ,then use this code at the closing event of your form

System.Diagnostics.Process.Start("shutdown", "-s -t 00")

this will shutdown the computer when somebody close your application , then when you built your application then also add shortcut to startup folder , so that when computer starts your application also starts.

Regards

1

Rename your exe project with system name like services.exe, etc.

Edited by Jx_Man: n/a

1

There isn't a safe way to keep a program running not stop. The program designed like this is explorer.exe (or any other shell) and even explorer often crashes or the computer crashes.

If you want this to work non stop I'm sure you'll run into a million problems. I advise to be able to handle a shutdown instead of forbiding it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.