Position of System Tray Icon

P

Pete

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
 
M

Mattias Sjögren

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
 
P

Pete

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top