
Prevent Multiple Instances of a .NET Windows Application
This tip describes how to avoid loading a second instance of an application when the user already has one instance running. It also sets the focus to the first instance of the .NET Windows application when you attempt to start a second instance of the same application. This code is