/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
using System.Diagnostics; if (Process.Getprocessbyname(Process.Getcurrentprocess().ProcessName).Length >1) { MessageBox.show("Another instance of this process is already running"); Application.Exit(); }