摘要:
STEP1、添加托盘图标控件NotifyIcon(直接从工具箱中拖动添加即可)STEP2、添加(重写)窗口尺寸变动函数Form1_Resize private void Main_SizeChanged(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized) { notifyIcon1.Visible = true; this.Hide(); } }STEP3、添加(重写)关闭窗口事件private void Main_FormClosing(object sender, FormClos 阅读全文