曹永思

导航

2012年11月8日 #

WinForm 程序托盘

摘要: /// <summary> /// 双击托盘打开主菜单 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e) { this.Visible = true; if (this.WindowState == FormWindowState. 阅读全文

posted @ 2012-11-08 14:53 曹永思 阅读(149) 评论(0) 推荐(0)

WinForm开机启动 判断 设置

摘要: /// <summary> /// 判断是否是开机启动 /// </summary> private void CheckIsKJJD() { //声明注册表LocalMachine对象 RegistryKey R_local = Registry.LocalMachine; //创建注册表项 RegistryKey R_run = R_local.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"); //判断获取的值是否为空 if (R_run.GetValue(" 阅读全文

posted @ 2012-11-08 14:52 曹永思 阅读(462) 评论(0) 推荐(0)