471,337 Members | 817 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Exact (X, Y) position of a file on the desktop

Anybody know how to get the exact (X, Y) position of a file on the
desktop?

Feb 14 '06 #1
3 1452
Do you mean an icon on the desktop?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Henrik" <do******@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Anybody know how to get the exact (X, Y) position of a file on the
desktop?

Feb 14 '06 #2
Yes, I mean an icon on the desktop...

Kevin Spencer skrev:
Do you mean an icon on the desktop?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Henrik" <do******@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Anybody know how to get the exact (X, Y) position of a file on the
desktop?


Feb 14 '06 #3
Hi Henrick,

This is not going to be easy, because it will require some Windows API work
or other Interop to do. Basically, everything you need is in the Windows
Shell, and that's not available through any existing .Net namespaces. Here
are a couple of good references for you:

The MSDN Windows Shell Programmer's Guide:
http://msdn.microsoft.com/library/de...hell_intro.asp

The Code Project - C++ Shell Extension Programming. Lots of articles and
sample code:
http://www.codeproject.com/shell/

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Henrik" <do******@hotmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Yes, I mean an icon on the desktop...

Kevin Spencer skrev:
Do you mean an icon on the desktop?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
We got a sick zebra a hat,
you ultimate tuna.
"Henrik" <do******@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
> Anybody know how to get the exact (X, Y) position of a file on the
> desktop?
>

Feb 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by gce | last post: by
2 posts views Thread by Tom McL. | last post: by
1 post views Thread by Hamed | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.