把窗体放到任务栏中的代码--出现错误,请大家分析一下
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); 
                         }   
 到底怎么做呢 
 我把它复制过去好像不对呢
------解决方案--------------------public const int SC_CLOSE =  0xF060; 
 把这个加上