I have WPF Application. I want to give ability for user by checkbox to put App (exe file) to the windows Startup. How Can I do this programmaticaly in C#?
See Question&Answers more detail:osI have WPF Application. I want to give ability for user by checkbox to put App (exe file) to the windows Startup. How Can I do this programmaticaly in C#?
See Question&Answers more detail:osYou will need to add the application to the HKCUSoftwareMicrosoftWindowsCurrentVersionRun
key in registry. See this for an example in C#: Managing Start-up