-
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
-
adaboost
人脸识别的adaboost。包括load_images,imresize,Classify。(Face Recognition adaboost. Including load_images, imresize, Classify.)
- 2009-09-17 21:48:35下载
- 积分:1
-
c# write a Gobang game, the more beautiful interface, while the computer
c#写的一个五子棋游戏,界面比较漂亮,同时电脑的智能也不低,可以和电脑挑几局-c# write a Gobang game, the more beautiful interface, while the computer
- 2022-02-24 17:34:50下载
- 积分:1
-
该文件是基于labview开发的一个虚拟示波器,有需要的可以来
该文件是基于labview开发的一个虚拟示波器,有需要的可以来-The document is based on the LabVIEW development of a virtual oscilloscope, are in need can come
- 2022-02-21 13:52:03下载
- 积分:1
-
FCbook
模糊控制 作者Kevin M. Passino and Stephen Yurkovic(Kevin M. Passino and Stephen Yurkovich,
Fuzzy Control
Addison Wesley Longman, Menlo Park, CA, 1998 (later published by Prentice-Hall).)
- 2011-12-22 14:22:55下载
- 积分:1
-
25811265dijkstra
对三维环境进行路径规划()
- 2018-05-09 09:32:33下载
- 积分:1
-
用vb变得密码程序,请帮助揭开,THANKS
用vb变得密码程序,请帮助揭开,THANKS-Becomes the password using vb program, to help open, THANKS
- 2022-03-21 10:37:56下载
- 积分:1
-
asp100tip
asp常见100个问题解答。对于新手入门阶段学习帮助很多。(asp 100 tips.)
- 2010-01-21 17:29:15下载
- 积分:1
-
3D前后变化的Flash图片展示效果
3D前后变化的Flash图片展示效果,这只是一个图片展示,图片上面没有添加链接功能,只可作为浏览图片之用。
- 2022-09-16 14:45:03下载
- 积分:1
-
jmeter-proxy-step-by-step
说明: jmeter-proxy-step-by-step傻瓜化文档(jmeter-proxy-step-by-step)
- 2020-06-17 03:00:02下载
- 积分:1