I dont know how to create a winform application which has only one instance anytime. Could someone please help me how to do that ?
1 Answer 1
Use Mutex class http://msdn.microsoft.com/en-us/library/system.threading.mutex.aspx It is allowed to create only one instance of Mutex with same name on a machine.
Sign up to request clarification or add additional context in comments.
Comments
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related
Hot Network Questions
- Printing Service is not available after software update on 24.04
- How can I bend or deform an object to create a concave or pincushion shape?
- Number of subgroups in a semidirect product
- Can I backup Legends Arceus save file to use, in case I want to format my Switch?
- Why does JavaScript use autoboxing?
- What is the maximum number of damage types for a single attack?
- To pretwist or not between two solids and one stranded?
- How to use an iPad as an external monitor with Mac mini 6.1 (Late 2012) for installing Ubuntu?
- Formal and intuitive definitions of nilpotent group
- What does "origin of the world" vulgo "Big Bang" mean?
- What exactly is Kripkenstein?
- Is a proper wire nut connection possible if wires don’t twist?
- org-mode use reference and loop over several tables -> error handling
- Will this this schematic modification work?
- How to run a command in a terminal only if the previous commands succeed?
- algorithm2e - Functional programming style match-with using custom Switch
- What physical changes to the mouth would cause problems with articulation?
- What damages are recoverable for late delivery of a package?
- Manga involving the MC playing a computer game connected to a medieval fantasy world
- Find Extreme UV data source for the Sun
- How to turn 90 degree curved UV to vertical or horizontal square grid?
- Fool a program it has a pty of specific size
- When exactly does the game clock start during an American football kickoff?
- Eel-wielding man drowns and his enemy leaves town
lang-cs