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.
|
3 years ago | |
---|---|---|
Mk0.Tools.SingleInstance | 3 years ago | |
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
Mk0.Tools.SingleInstance.sln | 3 years ago | |
README.md | 3 years ago |
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