Hi,
I asked u this morning:
---------------------------------------
I want to programm some kind of Explorer like the Windows Explorer.
And I want to know how can i get the same Icons/Symbols for the files and
directories like the Windows Explorer uses.
Example:
The Icon for the Desktop.
With the Command:
Environment.GetFolderPath(Environment.SpecialFolde r.Desktop)
I can get the folder where the Windows Desktop is located.
But how can I get the standart icon for the desktop?
--------------------------------------
U answerd me:
---------------------------------------
You'll have to use WinApi's SHGetFileInfo method. Check these:
http://support.microsoft.com/?kbid=319350
http://www.codeguru.com/Csharp/Cshar...cle.php/c4261/
Note that for retrieving icons for individual files, it is much faster to
use filename extension since it will fetch icons from the shell icon cache.
--------------------------------------
This works fine, but, I don't get the right Icon for the Desktop. If I use
the directory where the desktop is stored in, I get a simple Folder Icon.
Not the nice blue Desktop Icon.
Does s.o. know how to get that Icon? (And all the other special Icons)
Thanx
Alex