Move icon
-
How to move an icon that is on the desktop at some position.
C#
-
How to move an icon that is on the desktop at some position.
C#
Hi, the easy way is using Windows desktop, i.e. interactively. Programmatically it is a rather complex job. It involves: - finding the right window (the desktop icons are all inside a listview which you could access on WinXP by finding first "Progman" then "SHELLDLL_DefView" then "SysListView32"). - finding the right icon (if you know it by name, you could enumerate them all to find its index in the list. - sending it an LVM_SETITEMPOSITION message using SendMessage All of the above require calling win32 functions from user32.dll with PInvoke. You'll have to do a lot of searching both on CodeProject and on MSDN and/or Google. :)
Luc Pattyn [My Articles]