Click here to Skip to main content
15,905,781 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
to all
(C#.net windows application)
i want start the windows program when windows starts so i want the sample code for it plz
thankq for all
Posted

There is no code for this.

If you want your app to start when Windows starts, then you have to write your app as a Windows Service.

If you want your app to start when a user logs in, then you need to put the command line to start your app in the Registry Run key.
 
Share this answer
 
This is a function of the operating system. So you need to set it up in the operating system. The way to do it is through the registry.
You can add this entry to the registry as a part of your installation program. The user installing it would need admin rights though.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900