Published
- 1 min read
launch app with pc startup c#
The solution for this is noted below
launch app with pc startup c#
Solution
using Microsoft.Win32;
private void SetStartup()
{
RegistryKey rk = Registry.CurrentUser.OpenSubKey
("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
rk.SetValue(AppName, Application.ExecutablePath);
}
Try other methods by searching on the site. That is if this doesn’t work