Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Tue, 10 Jun 2008 16:23:13 +0200,    group: microsoft.public.vstudio.extensibility        back       


Images in Solution Explorer   
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
date: Tue, 10 Jun 2008 16:23:13 +0200   author:   Torben Frandsen frandsen@ret.s?.privat.tele.dk

Re: Images in Solution Explorer   
"Torben Frandsen" wrote:
> 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
date: Tue, 10 Jun 2008 21:54:20 +0300   author:   Alex Blekhman

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us