WPF Single Instance Application – Update
Back in this post I’ve presented some code that make sure you only have one instance of your application.
As I’ve said before, I didn’t wrote this code, I just presented it since I came across it in a Microsoft reference application and didn’t want this gem to remain hidden.
Microsoft recently released a Windows 7 Recipe named “Windows 7 Taskbar Single Instance”, which despite its taskbar-related name is simply a revised implementation of the single instance feature in both .NET and C++. There are well documented samples for both cases. The credit for this recipe goes to Eran Stiller and Yochay Kiriaty.
I advise anyone who needs this feature to work with the new recipe.
That’s it for now,
Arik Poznanski.