Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 8731 |  Welcome, Guest!   Register  Login
 Home > Blogs > WPF > WPF application Single Instance in one line ...
Naimishforu

WPF application Single Instance in one line

 Blog author: Naimishforu | Posted on: 6/21/2011 | Category: WPF Blogs | Views: 2429 | Status: [Member] [MVP] | Points: 75 | Alert Moderator   


WPF application Single Instance in one line

Usage: WpfSingleInstance.Make(); or WpfSingleInstance.Make(SingleInstanceModes.ForEveryUser);

1. Add only a line of code (above) in the App.xaml.cs or in the main window.
2. Add a small static class in project (and a dummy enum SingleInstanceModes).

No additional inheritance in App class.
No App.xalm deleting.
No so redundant WCF and Remoting.
It works by the EventWaitHandle. Look in code, it's so simply.
 



Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/
Found interesting? Add this to:


Experience:5 year(s)
Home page:http://naimishpandya.blogspot.in/
Member since:Saturday, January 22, 2011
Level:Bronze
Status: [Member] [MVP]
Biography:
>> Write Response - Respond to this post and get points

More Blogs

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 4:13:24 PM