摘要:
先放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 阅读全文