title: How do I ensure there is only a single running instance of my application?
body: <p>I created a small program in WPF. When I run my exe file, it will open my application correctly. However, when I run my exe again, it will open another time. I would only like it to run a single time.</p>
  
  <p>I searched the solution for this problem and I got some code like this:</p>
  
  <pre><code>System.Diagnostics.Process.GetCurrentProcess().Kill();
  </code></pre>
  
  <p>This code will close all the applications. However, what I need is when I run my exe again and again, there will only be a single instance of the application.</p>