You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Manuel Kamper 0f48e41ae7 Merge branch 'master' of 3 years ago
Mk0.Tools.SingleInstance Initial 3 years ago
.gitignore nuget 3 years ago
LICENSE Update LICENSE 3 years ago
Mk0.Tools.SingleInstance.sln Initial 3 years ago Initial 3 years ago


(C) 2019

With this code you are able to make your application a single instance.

Usage example:

static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SingleApplication.Run(new MainForm(), Demo.Properties.Settings.Default.singleInstance); }

MainForm is the form to show on start singleInstance is an optional boolean value, where you can enable/disable SingleInstance within your application settings