Single Instance program in C#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1255834/single-instance-and-notify-in-system-tray">single instance and notify in system tray</a>  </p>
</blockquote>



<p>I am trying to implement a program in C#.NET. My program uses the notification icon. I have made my program a single instance program using the class singleinstance.cs from <a href="http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=4430&amp;zep=SingleInstance_demo/SingleInstance/SingleInstance.cs&amp;rzp=/KB/cs/singleinstance//singleinstance_demo.zip" rel="nofollow">codeproject</a>. </p>

<p>Now, what I am trying to do is, if I close the main window and then if I run the application again, it should open the main window of the already running program instance in the system tray.</p>

<p>I have googled a lot over this but didn't find something useful for me.</p>
