Probably very easy question, apologies, newB to Winforms...

I've successfully created a NotifyIcon to sit in the system tray.

I want to use the position of the icon as an anchor for a dialog box.

How do I find out the position of the icon?

TIA, Pete

Re: Position of System Tray Icon by Mattias

Mattias
Thu Oct 13 16:47:52 CDT 2005

Pete,

>I want to use the position of the icon as an anchor for a dialog box.
>
>How do I find out the position of the icon?

Can't you just use the current mouse cursor coordinates instead?
That's what most people do for showing a context menu for the icon.


Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Re: Position of System Tray Icon by Pete

Pete
Fri Oct 14 11:45:57 CDT 2005

Yes, that was what I did in the end. Just wondered whether I could ask
the icon "where are you" without involving the mouse.