C#: Check if an application is already running
This is the snippet code to check if application running or not in C#
By Mohd Zulkamal
NOTE : – If You have Found this post Helpful, I will appreciate if you can Share it on Facebook, Twitter and Other Social Media Sites. Thanks =)
using System.Diagnostics;
bool IsApplicationAlreadyRunning(string processName)
{
Process[] processes = Process.GetProcessesByName(processName);
if (processes.Length >= 1)
return true;
else
return false;
}
By Mohd Zulkamal
NOTE : – If You have Found this post Helpful, I will appreciate if you can Share it on Facebook, Twitter and Other Social Media Sites. Thanks =)