关闭应用程序的几种方法

    Application.Exit();//注意Application在using System.Windows.Forms命名空间中;
    System.Diagnostics.Process.GetCurrentProcess().Kill();

posted @ 2013-03-26 15:18  Predator  阅读(715)  评论(0编辑  收藏  举报