Go to file
Manuel Kamper bb1282e066 Initial 2019-03-22 23:12:32 +01:00
Mk0.Tools.SingleInstance Initial 2019-03-22 23:12:32 +01:00
.gitignore Initial commit 2019-03-22 23:08:19 +01:00
LICENSE Initial commit 2019-03-22 23:08:19 +01:00
Mk0.Tools.SingleInstance.sln Initial 2019-03-22 23:12:32 +01:00
README.md Initial 2019-03-22 23:12:32 +01:00

README.md

Mk0.Tools.SingleInstance

(C) 2019 mk0.at

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