Solved

Moving desktop icons

Posted on 2004-04-02
3
695 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

770 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