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

  • Thread starter Thread starter Henrik
  • Start date Start date
H

Henrik

Anybody know how to get the exact (X, Y) position of a file on the
desktop?
 
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.
 
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/d...atform/shell/programmersguide/shell_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.
 

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

Back
Top