Click here to Skip to main content
Licence 
First Posted 3 Jan 2004
Views 26,583
Bookmarked 14 times

Single instance app in C#

By | 3 Jan 2004 | Article
Sample for demonstrating interprocess communication using same application.

Introduction

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.

License

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

nigs_krec



India India

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralNice... Pinmemberro_angel_bv6:13 15 Apr '04  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web01 | 2.5.120517.1 | Last Updated 4 Jan 2004
Article Copyright 2004 by nigs_krec
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid