我制作了一个在启动期间启动的应用程序,下面是下面的代码。
重新启动后,该进程将在进程管理器工具上运行,但是在屏幕上看不到该应用程序。当我从启动注册表值中打开相同的.exe文件时,程序运行完美。
// 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());
我该如何解决?
相关分类