I've created an application that starts off in the system tray when it is started. I used the below post to achieve this: How to start WinForm app minimized to tray?
This application also only allows a single instance to run: http://www.codeproject.com/Articles/32908/C-Single-Instance-App-With-the-Ability-To-Restore
The problem I'm getting is when I first start the application it minmizes to the system tray, but if I click the desktop icon it does not appear. I have to click on the icon in the tray to restore the application. If I then minimize it again and then click on the desktop icon it appears.
This is my second attempt at a winform application, is it something to do with the SetVisibleCore?
Any pointers in the right direction would be great.