天堂的狼

更好的生活,来自不懈的努力与拼搏,不要仅仅看中结果,拼搏的过程同样是精彩的!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::

2008年11月11日

摘要: RegistryKey KeyCon=Registry.LocalMachine.OpenSubKey( "Software\\Microsoft\\Windows\\CurrentVersion\\Run",true); string MyKey= "Terminal"; if((string)KeyCon.GetValue(MyKey,"no") == "no")//指定的键不存在 { string Path = Application.StartupPath+@"\Terminal.exe"; KeyCon.SetValue(MyKey,Path); //设置注册表中的启动键 } 阅读全文
posted @ 2008-11-11 13:25 天堂的狼 阅读(253) 评论(0) 推荐(0)

摘要: Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); RunMainForm(autoStart, hide, service); SingleInstance.ReleaseMutex(); 阅读全文
posted @ 2008-11-11 13:13 天堂的狼 阅读(348) 评论(0) 推荐(0)