Posted By

jx_boi on 08/31/10


Tagged

check process


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Tyster
ovuncgursoy


Check Process Instance


 / Published in: C#
 

  1. using System.Diagnostics;
  2.  
  3. if (Process.Getprocessbyname(Process.Getcurrentprocess().ProcessName).Length >1)
  4. {
  5. MessageBox.show("Another instance of this process is already running");
  6. Application.Exit();
  7. }

Report this snippet  

You need to login to post a comment.