C#程序自启动
作者:互联网
在窗体加载事件里面加入下述代码:
//设置开机自启动 RegistryKey registryKey = Registry.CurrentUser.OpenSubKey ("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); registryKey.SetValue("CameraVision",Application.ExecutablePath);
标签:OpenSubKey,Run,registryKey,C#,程序,Application,自启动 来源: https://www.cnblogs.com/zxtang/p/15659773.html