I made an application that launches during startup, with the next code below.
The process runs on the process manager tool after the restart, but I can't see
the application on the screen.
When I open the same .exe file from the startup registry value the program runs perfect.
// The path to the key where Windows looks for startup applications
RegistryKey rkApp = Registry.CurrentUser.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
// Add the value in the registry so that the application runs at startup
rkApp.SetValue("MyApp", Application.ExecutablePath.ToString());
What can I do to fix it up?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…