摘要: 先放notifyIcon和contextmenustrip控件,并设置对于关系然后1.关闭事件里,阻止之间关闭按钮(为了使得用户单机右下角的退出时,能够退出,所以必须使用CloseReason属性) private void Form1_FormClosing(object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason.ApplicationExitCall) { Application.Exit(); } else { e.Cancel = true; this.WindowState = FormWin 阅读全文
posted @ 2011-11-22 10:52 启明星工作室 阅读(4328) 评论(0) 推荐(1) 编辑