Notifyicon present in system tray twice
Posted on 2006-05-21
I have a WinForms application which runs from a notifyicon in the Windows system tray. The notifyicon's context menu has a couple of menu items which are visible conditional on the user's level in the company. I am using a module to query a database for information on the user, and then to set the menu items' visibility depending on this information. My problem is that when I compile the application, the notifyicon is visible in the system tray twice, and also that when a particular form is launched another instance of the notifyicon appears in the system tray. There is only ever one instance of the application's process running though.
If anyone who can point me towards how to resolve this problem I'd be very grateful,