Run the Windows .net Application in System Tray on System Startup

Posted by Rajneesh Verma on ASP.net Weblogs See other posts from ASP.net Weblogs or by Rajneesh Verma
Published on Mon, 14 Feb 2011 07:25:48 GMT Indexed on 2011/02/14 15:26 UTC
Read the original article Hit count: 324

Hi, Today i have created a .net windows application which has following key points. 1. Run only one instance of the project: to achieve this i have change the code of Program.cs as: Code Snippet static class Program { /// <summary> /// The main entry point for the application. /// </summary> [ STAThread ] static void Main() { bool instanceCountOne = false ; using ( Mutex mtex = new Mutex ( true , "MyRunningApp" , out instanceCountOne)) { if (instanceCountOne) { Application ...(read more)

© ASP.net Weblogs or respective owner

Related posts about .NET

Related posts about Windows.net