![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
WinForm
dinght92-tech
干大事而惜身,见小利而忘义
展开
-
C#获取当前程序运行路径的方法集合
转载自:https://www.cnblogs.com/xifengyeluo/p/8409050.html//获取当前进程的完整路径,包含文件名(进程名)。string str = this.GetType().Assembly.Location;result: X:\xxx\xxx\xxx.exe (.exe文件所在的目录+.exe文件名)//获取新的 Process 组件并...转载 2019-03-04 15:08:43 · 425 阅读 · 0 评论 -
C#中WinForm程序退出方法技巧总结
转载自https://www.cnblogs.com/HappyEDay/p/5713707.html一、关闭窗体在c#中退出WinForm程序包括有很多方法,如:this.Close();Application.Exit();Application.ExitThread();System.Environment.Exit(0);等他们各自的方法不一样,下面我们就来详细介绍一下。...转载 2019-03-04 15:49:24 · 372 阅读 · 0 评论