Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / June 2008

Tip: Looking for answers? Try searching our database.

Images in Solution Explorer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Torben Frandsen - 10 Jun 2008 15:23 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.