I have a C# Windows Form Application that has settings, in the settings window I’ll have a check box witch indicates that my application should start automatically after windows start-up or not. I need to set and unset this future programmatically in c#. What is the simplest way to do this ?
Share
To auto-run your program at windows startup you want to add your application to the registry key at:
There will be other keys there; take a look in regedit to see examples of what yours needs to look like.
You can add or remove a key there with the registry class:
http://msdn.microsoft.com/en-us/library/h5e7chcf.aspx