Click here to Skip to main content
12,953,230 members (49,453 online)
Click here to Skip to main content
Add your own
alternative version


15 bookmarked
Posted 3 Jan 2004

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

You may also be interested in...


Comments and Discussions


General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 4 Jan 2004
Article Copyright 2004 by nigs_krec
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid