1. 控件:notifyIcon
在类中定义const int WM_SYSCOMMAND = 0x0112;    
复制下列代码到你的类中
    protected override void WndProc(ref Message m)
        {
            if (m.Msg == WM_SYSCOMMAND && (int)m.WParam == SC_CLOSE)
            {
                this.notifyIcon1.Visible = true;
                this.Visible = false;
                return;
            }
            base.WndProc(ref m);
        }到底怎么做呢
我把它复制过去好像不对呢