Click here to Skip to main content
15,886,100 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've seen a program which can relocate all of your desktop icons in a beautiful way and also can make icons bounce when you hover the mouse pointer on them.

Surely there is an API way to do so, but I'm a .Net programmer and my knowledge about Win32 API functions is little.

Is there any seasoned Developer who can show me how to do so? ;)
Even a short hint will be valuable :thumbsup:

Thanks a lot :)
Posted

Well the only other place I know to look is here[^] on MSDN.
 
Share this answer
 
Thanks again Rechard :)
It seems that Windows desktop is just a ListView and there are 2 API functions that can get and set icon positions on desktop:
LVM_GETITEMPOSITION
LVM_SETITEMPOSITION

here is a solution, but the writer says it doesn't work!:
Retrieving Desktop Icon Positions[^]

and here is a page from Windows Developers Center:
How can i get desktop's icon's information ?[^]
 
Share this answer
 
A number of articles are available here[^] on CodeProject.
 
Share this answer
 
Thanks Rechard, but non of them answers my problem ;)
 
Share this answer
 
Maybe try c#, there is some scripts out there,
im not familiar with c# but you might be, so try this:
Manipulating the positions of desktop icons | The Old New Thing[^]
 
Share this answer
 
Comments
OriginalGriff 30-Mar-21 15:07pm    
While I applaud your desire to help the community, responding to 11 year old questions is unlikely to be use: the original poster is probably no longer interested.
And ... the main reason people post "solutions" to old questions is in the hope that they won't get noticed in order to build a reputation: we treat it as a form of site abuse, and ban people from the site for that.
In this case, I'm not convinced that was your intent, so I'll just warn you to stick to new questions instead - but be aware that we have many more trigger-happy members than I and if you do it again, you will be noticed and they will start the process of banning you.

Stick to new questions and you'll be fine.
anurag1290 27-Jan-22 6:38am    
I found this useful while searching for an article on the topic, what nonsense, if someone is helping the dev community, you will ban him?
OriginalGriff 27-Jan-22 7:22am    
If they continually post to old questions, we call that "rep point farming" - they aren't answering questions to post a solution, but for the rep points that gives.
That's counted as "site abuse" and the punishment for that is the ban hammer.

But with the exception of Staff, it takes a number of members to wield that tool as a "safety check". I'm not exactly "trigger happy" myself, so I prefer to warn people rather than start the process - but other members have a lower tolerance.
If a member continues to look like a troll, he'll get treated as a troll pretty quickly!
xyzzer 17-Feb-22 21:02pm    
Wow, that sure makes these other members sound like trolls guarding the bridge to knowledge... :) I was just here looking for answers to the same sort of question about icons on desktop.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900