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.

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

Share

About the Author

nigs_krec

India India
No Biography provided

Comments and Discussions

 
-- No messages --
Try changing the 'Date Filter' value
| Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 4 Jan 2004
Article Copyright 2004 by nigs_krec
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid