Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure a C# program to run when the Operating System is first started?

Tags:

c#

.net

winforms

How do I configure a C# program to run when the operating system is first started?

like image 784
Gold Avatar asked Nov 28 '22 23:11

Gold


1 Answers

If you want to run the program when the user logs on, then the "Startup" folder or Run registry key methods both work.

If you want the program to run when the computer is turned on (ie Windows starts), without waiting for the user to log on, you will need to install it as a service, and configure it to start automatically.

like image 103
Nader Shirazie Avatar answered Dec 18 '22 06:12

Nader Shirazie