-
C# 使用进程名禁止程序运行多次
C# 使用进程名禁止程序运行多次,
string moduleName = Process.GetCurrentProcess().MainModule.ModuleName; //获取当前活动进程的模块名称
string processName = System.IO.Path.GetFileNameWithoutExtension(moduleName);//返回指定路径字符串的文件名
Process[] processes = Process.GetProcessesByName(processName);//根据文件名创建进程资源数组
if (processes.Length > 1)//如果该数组长度大于1,说明多次运行
{
MessageBox.Show("本程序一次只能运行一个实例!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);//弹出提示信息
this.Close();//关闭当前窗体
}
- 2022-02-04 01:16:54下载
- 积分:1
-
运输问题在LINGO下的程序!
运输问题在LINGO下的程序!-LINGO transport problems in the process!
- 2022-04-30 10:33:30下载
- 积分:1
-
五子棋站
五子棋单机版、网络版合一,网络版为单人对战,可同时容纳多组在线-Gobang stand-alone version, the network version of unity, the network version of the Single Battle, which can accommodate multiple-line
- 2022-08-06 05:59:15下载
- 积分:1
-
vb作的简单打字训练
vb作的简单打字训练-vb for the simple typing training
- 2022-09-30 06:40:02下载
- 积分:1
-
以上是我大学毕业设计,《谐波小波与近似熵结合的噪声分析》希望对大家有用...
以上是我大学毕业设计,《谐波小波与近似熵结合的噪声分析》希望对大家有用-above I graduated from university design, "Wavelet harmonic combination with the approximate entropy Noise Analysis" I hope useful for all
- 2022-08-23 04:00:42下载
- 积分:1
-
greed algorithm
贪心算法,动态生成数组后,然后计算得到最小生成树-greed algorithm
- 2022-10-13 14:00:02下载
- 积分:1
-
cauculation the scattering fiele of the microstrip antenna ,user can set the par...
微带天线的散射场的计算,用户可自己设置参数-cauculation the scattering fiele of the microstrip antenna ,user can set the parameter free
- 2023-01-31 12:25:03下载
- 积分:1
-
通过学生成绩管理程序,教师可以轻易地了解学生学习情况,传统手工的学生成绩管理,操作效率低,并且易于出错,查询不方便。本程序实现了对一个班的学生考试成绩按科目进行...
通过学生成绩管理程序,教师可以轻易地了解学生学习情况,传统手工的学生成绩管理,操作效率低,并且易于出错,查询不方便。本程序实现了对一个班的学生考试成绩按科目进行排序,并统计出各科目的最高分、最低分和平均分的数据。-Management program through student achievement, teachers can easily understand the students learning, the traditional manual student performance management, operational efficiency is low, and error-prone, query inconvenient. This program implements a class of students on test scores sorted by subjects, and the statistics of various subjects, the highest score, lowest score, and average data.
- 2023-02-17 18:15:03下载
- 积分:1
-
本程序可以实现高斯―克吕格投影不同分带坐标的相互转换,经纬度转换为坐标,并可以求取求任一点所在国家标准图幅编号,同时显示所在1:50000地形图地形等级及地区调...
本程序可以实现高斯―克吕格投影不同分带坐标的相互转换,经纬度转换为坐标,并可以求取求任一点所在国家标准图幅编号,同时显示所在1:50000地形图地形等级及地区调整系数(大调查经费预算用)。-KLOMHH KKAJ
- 2022-07-20 09:53:23下载
- 积分:1
-
已经添加完毕所有功能的PB工程.
直接编译就可以的.
添加了很多功能...
已经添加完毕所有功能的PB工程.
直接编译就可以的.
添加了很多功能-Have finished adding all the features of the PB works. Direct the compiler is fine. Add a lot of features
- 2022-02-05 17:29:37下载
- 积分:1