Horje
c# how to start an application and detect if started Code Example
c# how to start an application and detect if started
using System.Diagnostics;
using System.IO;
using System.Reflection.Assembly;

class Class
{
	if (Process.GetProcessesByName(Path.GetFileNameWithoutExtension(GetEntryAssembly().Location)).Count() > 1) 
	{
		Process.GetCurrentProcess().Kill();
	}
 
}




Csharp

Related
add css class based on model value razor Code Example add css class based on model value razor Code Example
create extern to be usable in c# Code Example create extern to be usable in c# Code Example
spin with rigidbody 2d unity Code Example spin with rigidbody 2d unity Code Example
c# new list of objects Code Example c# new list of objects Code Example
loop menustrip buttons Code Example loop menustrip buttons Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13