以软件【银行业会计人员技能训练系统】为例,C#如何在只允许一个实例的条件下重启软件?
最简单粗暴的方法就是在重启按钮处添加代码:
Process.Start(Application.ExecutablePath);
Process p = Process.GetCurrentProcess();
p.Kill();
本文由查霆原创,原文地址:http://www.zhating.cn/index.php/post/77.html
更多C#相关文章请参阅:http://www.zhating.cn/index.php/category-4.html