Designer.cs不能进行重构吗?重构以后,设计界面打不开了,编译、运行都没有问题。

解决方案 »

  1.   

    InitializeComponent看起来太长了,起码两百行以上了,貌似动了不大行。
      

  2.   

    在VS2002/2003中,designer.cs文件还没有独立出来,而是放在Form文件中的,被一个region包裹,上面有注释:设计器自动生成的代码,请勿手工修改。
      

  3.   

    Designer.cs是自动生成的,你改了编辑器自然会无法识别,
      

  4.   

    Designer.cs中的注释:        /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
      

  5.   

    在Design editor中动了下什么控件,文件还会再自动生成一边的。