Click here to Skip to main content
15,887,214 members
Articles / Desktop Programming / Windows Forms

Run Only One Copy Of Application

Rate me:
Please Sign up or sign in to vote.
4.00/5 (4 votes)
30 Mar 2011CPOL 9.4K   4  
Just because we like C# doesn't mean we can't borrow from other .NET languages. I've always had good luck and less complication using VB's single instance methodology in my C# applications. This code would go in your program.cs file:/// /// We inherit from...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer http://stlaurent.me
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions