摘要: System.IO.Directory.GetCurrentDirectory()方法用于获得应用程序当前工作目录。System.Windows.Forms.Application.StartupPath 获得应用程序的可执行文件的路径,不含文件名StartupPath 可执行文件固定就不会变,可用 阅读全文
posted @ 2017-02-22 17:11 寒夜美美 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 在c#中退出WinForm程序包括有很多方法,如:this.Close(); Application.Exit();Application.ExitThread(); System.Environment.Exit(0); 等他们各自的方法不一样,下面我们就来详细介绍一下。 1.this.Close 阅读全文
posted @ 2017-02-22 17:03 寒夜美美 阅读(5252) 评论(0) 推荐(0) 编辑