标签:
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e) { this.WindowState = FormWindowState.Normal; //若使用Hide()时,要用Show()方法显示窗体 } private void MainForm_Resize(object sender, EventArgs e) { this.ShowInTaskbar = this.WindowState != FormWindowState.Minimized;//最小化时不在任务栏显示 //或者如下 if (this.WindowState == FormWindowState.Minimized) Hide();//最小时隐藏 }
标签:
原文地址:http://www.cnblogs.com/dennysong/p/5581216.html