-
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
-
good program ,I like very much
good program ,I like very much-good program, I like very much
- 2022-09-25 02:10:03下载
- 积分:1
-
TFT2.4-characters-2-sample-program
说明: 本文通过所提出STC单片机为例,给出了TFT2.4汉字2样例程序 !(TFT2.4 characters 2 sample program)
- 2011-02-23 15:49:24下载
- 积分:1
-
vec
A simple vector operation class and header
- 2009-04-22 00:13:18下载
- 积分:1
-
[同济做得]脉搏识别
这是一个脉搏信号处理的代码,采用的小波分析,还做脉搏信号识别,对于学习信号识别和分类的人很有帮助(This is a pulse signal processing code, small wave analysis, and pulse signal identification, which is helpful for learning signal identification and classification)
- 2020-10-26 17:00:00下载
- 积分:1
-
RD_FFT
信号处理中,对目标进行距离和速度二维FFT变换(Two-dimensional FFT transform of range and velocity)
- 2019-04-17 18:59:24下载
- 积分:1
-
Pan_Tompkins_ECG_v5
PanTompkins算法,分割ECG信号每个拍子的QRS-T部分等(PanTompkins algorithm, segmentation of ECG signal QRS-T part of each beat, etc.)
- 2020-12-09 07:39:20下载
- 积分:1
-
the easyest snake game with mfc for newer
the easyest snake game with mfc for newer
- 2022-04-26 20:27:54下载
- 积分:1
-
bumper-PXI
利用LabVIEW开发的数据采集程序,利用DAQ板卡,可以实现模拟和数字输入,并自动进行存储。(Developed using LabVIEW data acquisition procedures, use of DAQ boards, you can realize both analog and digital inputs, and automatically stored.)
- 2008-07-16 17:03:52下载
- 积分:1
-
渗流力学
进行渗流力学的s-w曲线,压降漏斗,相渗曲线的作图(Perform s-w curve of seepage mechanics, pressure drop funnel, plot of phase infiltration curve)
- 2020-12-20 13:19:09下载
- 积分:1