Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
How to get the location of notifyicon at runtime which is displayed in tray. Acatually I wanted to show a form shaped as arrow just above the icon of notifyicon at runtiime so how to get the location of the notifyicon at runtime.
Posted
Comments
Sergey Alexandrovich Kryukov 6-May-11 10:45am    
Pretty interesting problem; make sense. My 5.
--SA

1 solution

There really is no way of doing this without some seriously hefty PInvoke stuff, other than getting mouse click location inside your app. A big problem will be that the NotifyIcon tray can rearrange the icons as it sees fit, and you won't be able to tell. I also know users can Hide inactive icons, which could cause you even more headaches.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900