System tray icon
-
I wrote a C# windows application, in Visual Studio 2005, that will email certain files to certain people at a certain time every day. This program have to run permanantly to check the time. How do I make the program run in the background and have only a system tray icon on which you click to maximize the app?? -- modified at 7:28 Tuesday 25th April, 2006
-
I wrote a C# windows application, in Visual Studio 2005, that will email certain files to certain people at a certain time every day. This program have to run permanantly to check the time. How do I make the program run in the background and have only a system tray icon on which you click to maximize the app?? -- modified at 7:28 Tuesday 25th April, 2006
-
I wrote a C# windows application, in Visual Studio 2005, that will email certain files to certain people at a certain time every day. This program have to run permanantly to check the time. How do I make the program run in the background and have only a system tray icon on which you click to maximize the app?? -- modified at 7:28 Tuesday 25th April, 2006
private void Form_SizeChanged(...) { if(this.WindowState==FormWindowState.Minimized) { this.ShowInTaskbar=false; NotifyIcon.Visible=true; }//if }//sizechanged private void NotifyIcon_DoubleClick(...) { this.ShowInTaskbar=true; this.WindowState=FormWindowState.Normal; NotifyIcon.Visible=false; }
-
I wrote a C# windows application, in Visual Studio 2005, that will email certain files to certain people at a certain time every day. This program have to run permanantly to check the time. How do I make the program run in the background and have only a system tray icon on which you click to maximize the app?? -- modified at 7:28 Tuesday 25th April, 2006
The NotifyIcon class is what you need to use to create the system tray icon. Graham