Groups | Blog | Home
all groups > dotnet windows forms controls > may 2008 >

dotnet windows forms controls : NotifyIcon screen coordinates



Grant Schenck
5/28/2008 11:17:52 AM
Is there any way to determine a NotifyIcon's screen position and size?
--
Grant Schenck

Bob Powell [MVP]
6/16/2008 8:57:38 PM
afaik there's no way to do this and rightly so I think.

You can determine the position of a click on your icon using the static
Control.MousePosition property but i don't beleive you can get the position
at any other time.

I say "rightly so" because your program shouldn't need knowledge of it. it
may be hidden or placed according to pro=iorities that the system
determines.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

[quoted text, click to view]
AddThis Social Bookmark Button