Click here to Skip to main content
Click here to Skip to main content

Single instance app in C#

, 3 Jan 2004
Rate this:
Please Sign up or sign in to vote.
Sample for demonstrating interprocess communication using same application.


This application ensures that only a single instance of an application exists. If any attempt is made to launch the application a second time, the command line parameters are sent to the already running instance and the second instance is terminated.

This application is the C# equivalent of an already posted article demonstrating the single instance behavior of an application.

This application takes in a command line argument and displays it in the edit box of the form. When this application is launched for the second time, it simply updates the edit box of the already running application instead of creating a new instance.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author


India India
No Biography provided

Comments and Discussions

-- No messages could be retrieved (timeout) --
| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150327.1 | Last Updated 4 Jan 2004
Article Copyright 2004 by nigs_krec
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid