static void Main()
        {
            Form1.EnableVisualStyles();
            Form1.SetCompatibleTextRenderingDefault(false);
            Form1.Run(new Form1());
        }
  错误信息 
  不包含EnableVisualStyles的定义
  不包含SetCompatibleTextRenderingDefault的定义
  不包含Run的定义   求解???

解决方案 »

  1.   

                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Form1());
      

  2.   

    工程建好是下面代码的吧
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Form1());
       楼主手动改了代码吧
    Form1.Run(new Form1())这句与Application.Run(new Form1())这句还是有本质的区别的吧
      

  3.   


     恩, 是的。 之前我把form1的Name改了application。
     然后改回来。 就搞错了。