Moving desktop icons

I would like to write an application that can read the positions of the desktop icons, change them and then write them back.

How do I access the position of the desktop icons from .Net? Ideally VB.Net, but C# is ok to.

LVL 2
LlandrAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
AlexFMConnect With a Mentor Commented:
This is complicated task which may be implemented using Windows API. The problem is that Desktop is ListView control which belongs to another process. This is VC++ application which does this:

http://www.codeguru.com/Cpp/misc/misc/article.php/c3807/
0
 
LlandrAuthor Commented:
I will accept AlexFM:s answer since it solves the immediate problem.
I would have liked a C# or .Net solution but it seems that I will have to make do.
0
 
AlexFMCommented:
There is no pure .NET solution for this problem. You can use PInvoke to call API from C#, and if solution contains hook Dll, this Dll cannot be managed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.