Solved

Moving desktop icons

Posted on 2004-04-02
3
740 Views
Last Modified: 2008-02-01
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.

0
Comment
Question by:Llandr
  • 2
3 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 250 total points
ID: 10739948
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
 
LVL 2

Author Comment

by:Llandr
ID: 10866981
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
 
LVL 48

Expert Comment

by:AlexFM
ID: 10867019
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question