1.新建窗体FrmMin.cs;然后在窗体中添加控件notifyIcon。 2. 在/bin/Debug目录下添加R11.ico图标 具体代码如下: private void FrmMin_Load(object sender, EventArgs e) { this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); notifyIcon1.Icon = new Icon("R11.ico");//指定一个图标 notifyIcon1.Visible = false; notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click); this.SizeChanged += new System.EventHandler(this.FrmMin_SizeChanged); } private void notifyIcon1_Click(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal; this.Activate(); this.notifyIcon1.Visible = false; this.ShowInTaskbar = true; } private void FrmMin_SizeChanged(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized)//最小化 { this.ShowInTaskbar = false; this.notifyIcon1.Visible = true; } }