Hi,
I'm displaying a list of files, and I'd like to put the same images next to
them as Solution Explorer does. Of course I could start digging out images
for all known file types. But before you know it, your addin runs on a
machine where the user has installed BrainFuck.Net or some other exotic
thing. So where does Solution Explorer get its images, and can I go there
too?
Also, I'd like to use some of the images that are used in the menus (such as
the green triangle for Build->Start Debugging.) I've looked in VS2005 Image
Library, but they aren't there. Any other way but to screen dump and crop?
Thanks,
Torben Frandsen
Alex Blekhman - 10 Jun 2008 19:54 GMT
> I'm displaying a list of files, and I'd like to put the same
> images next to them as Solution Explorer does.
Here is the thread that discusses the topic:
"Icon.FromHandle + ImageList = decreased color depth"
http://groups.google.com/group/microsoft.public.dotnet.framework.drawing/browse_
frm/thread/7c834685cc622425/89a514fc170617fa
> Also, I'd like to use some of the images that are used in the
> menus (such as the green triangle for Build->Start Debugging.)
> I've looked in VS2005 Image Library, but they aren't there. Any
> other way but to screen dump and crop?
Unfortunately, yes. Alternatively, you can discover the face ID of
desired icon and use it in your add-in. Here is the famous FaceID
browser:
"FaceID Browser"
http://skp.mvps.org/faceid.htm
Google for FaceID Browser to find many different implementations.
Also, you can download MS Office 2003 icons as .PNG files here
(thanks to some Chinese guy):
http://www.cnblogs.com/birdshome/archive/2006/04/12/372753.html
HTH
Alex