Solved

Moving desktop icons

Posted on 2004-04-02
3
648 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now