Allows you to enforce a single instance application on platforms other than Windows Mobile.
On generic Windows CE platforms the .NET Compact Framework does not enforce a single instance of your application.
If you want to override this behaviour and provide a behaviour to match Windows Mobile then set this property to true in your startup (e.g. static void Main()) procedure before Application.Run is called.
If a second instance of the application is created it will be closed and the initial instance will be brought to the foreground.
using InTheHand.Windows.Forms; [MTAThread] static void Main() { ApplicationHelper.IsSingleInstance = true; Application.Run(new Form1()); }
| Exception | Condition |
|---|---|
| PlatformNotSupportedException | Property is readonly on Windows Mobile (and will always return true). |