Search code examples
c#.netwindowssystem-traytrayicon

How to check if NotifyIcon is hidden


I don't want to FORCE it to be visible, I just want it to check to see if it is hidden by Windows.

Windows by default, hides the trayicons other than the system icons (Action Center, Battery, Network, Sound, Date and Time).

enter image description here


Solution

  • @Hans says there's no direct way to find out, which is unfortunate (but makes sense).

    You can still try to find out indirectly. You can take a snapshot of the desktop bitmap, find the task-bar (I think that in Windows 7 it can't be moved from the bottom, I'm not sure) and look for your icon. If you find it - it's there.