I add a shortcut of my .exe file to the startup registry using this code:
RegistryKey rk = Registry.CurrentUser.OpenSubKey
("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
rk.SetValue("SlashA006", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\SlashA006\SlashA006 - Shortcut.lnk");
When I reload the computer, the program loads but I get an error (a messagebox saying only: error) and my program won't work. I have no clue what could be causing this. Any ideas? Thank you