Tactic Devs @[email protected]
6.4K subscribers - no pronouns :c
Hi, I'm Jamie and I love to explore and teach computer progr
in the future - u will be able to do some more stuff here,,,!! like pat catgirl- i mean um yeah... for now u can only see others's posts :c
Implementing a Single Instance WPF AppΒ use the Mutex Class
Single instance means only one instance is allowed to run
Mutex: Think of a mutex as a special token that only one program can hold at a time. It's like a permission slip that says, "I'm running!"
OnStartup Method: This is a special function that runs when the program starts up.
Creating the Mutex: We create a mutex with a specific name (MyAppName). If this name is already taken by another running instance of our program, we won't be able to create it.
Checking if the Mutex Was Created : We check if we successfully created the mutex (if createdNew is true). If it wasnβt created because another instance of the program already did, we shut down this new instance.
16 - 2
The Trim method of the string class enables the eliminate of any white-space characters at both the beginning and end of a string.
4 - 0
Hey Youtube fam! Follow me on Twiiter for more update and posts .See you there
πππ twitter.com/TacticDevs
3 - 0
Thank you for the thousand subscribers, would like to thank each of you for being part of the journey.βββ
5 - 0
What Are Delegates Videoπ
Delegate are a C# language
feature worth knowing
Video:
https://youtu.be/EYU0J1bZ9MY β
5 - 0
Hi, I'm Jamie and I love to explore and teach computer programming, with a focus on C# and .Net . I enjoy learning about new technologies and sharing my knowledge with others. I hope to inspire and empower you through my Videos