怎样用C#让软件自动启动 现在我想开发一个软件,要让他自动启动,不是把它拖到启动里面用C#应该怎么写代码 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 写入注册表:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 把它放到启动目录下或放在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 用windows服务http://www.pconline.com.cn/pcedu/empolder/net/0505/613681.html RegistryKey Reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run",true); string sFilePath = Application.ExecutablePath; Reg.SetValue("名字",sFilePath); c#代码可以操作注册表添加这个就可以HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 就是写注册表HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 写注册表:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 或者写Windows服务,设成自动 写注册表咯RegistryKey Reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run",true); string sFilePath = Application.ExecutablePath; Reg.SetValue("程序的名字",sFilePath); 如何动态绑定属性列表中的下拉框 insert语句的问题 这错误怎么解决呢 C#初学者 用那种方式连接数据库更合适? 临界区 我想跳槽,大家知道哪里搞.net的多吗? 北京公司急需NET编程人员,全职 下载速度慢咋办呢 刚学WMI,有些问题请高手指点,个人感觉有点难 DataView的筛选可不可以用Like和%*等,我出错了!! C#如何实现Html代码的rowspan的功能 [winforms]: 一个简单的小问题
写入注册表:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
或放在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
http://www.pconline.com.cn/pcedu/empolder/net/0505/613681.html
string sFilePath = Application.ExecutablePath;
Reg.SetValue("名字",sFilePath);
添加这个就可以
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
或者写Windows服务,设成自动
RegistryKey Reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run",true);
string sFilePath = Application.ExecutablePath;
Reg.SetValue("程序的名字",sFilePath);