Sometimes there are good reasons not to allow any copies of your app to be executing alongside one another. We only want a single instance of the app running on any given machine.
The links below connect to downloadable examples of implementing a mutex lock in .NET applications.
Download the Console app example.
Download the WinForms app example.