I used the code from this article in order to add a singleton property to our software. Later I modified the code for Microsoft Terminal Server mode, see the new C# code here: http://www.codeproject.com/Articles/15185/Single-Instance-Application-Passing-Command-Line-A?msg=4226976#xx4226976xx