I made my application (WinForms EXE) that when I launch it my from command-line or GUI, I see an icon in the systary and it's OK.
I see now that if I wrap my application in a task into the Task Scheduler on Windows 2008 R2 or Windows 7, it's running in background but I see nothing in the systray. I'd prefer to see the icon in the tray.
Since the application is just running the same on both ways, I'm wondering what could be the reason I can't see the icon on systray? I want to see icon on the systray when it is launched from Task Scheduler too.