http://topic.csdn.net/u/20100425/11/9d5ba0cd-c559-4f67-946f-0d6ac8db70b4.html
你新建的线程还在运行,或主线程中还有循环在运行

解决方案 »

  1.   

    点X不代表DialogResult==DialogResult.Cancel
      

  2.   

    因此,你的代码应该是else
    {
        Application.Run(...);
    }
      

  3.   

    我想如果把这个项目的启动方式改为应用程序应该可以,即在右击项目》property,在将Application节点的outputtype 改为Windows Application
      

  4.   

    我想如果把这个项目的启动方式改为应用程序应该可以,即在右击项目》property,在将Application节点的outputtype 改为Windows Application