摘要: 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 阅读全文
posted @ 2013-12-17 14:44 柠檬绿松 阅读(660) 评论(0) 推荐(0) 编辑
View Code