Go Premium for a chance to win a PS4. Enter to Win


images to add to imageList control, vs 2012 c#

Posted on 2014-12-25
Medium Priority
Last Modified: 2014-12-25
Q1: Do I have to build images myself? If so, is there a place I can get these images for folders, word, excel, txt, etc? Some other applications (MS Access for example) has these images internally.

This is the instruction for adding images to this control: "Add an ImageList named imageList1 to the form and use the Properties window to add two images: a folder image and a document image, in that order."

Q2: What format and size these images ought to be built?
Question by:Mike Eghtebas
  • 4
  • 3
LVL 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 600 total points
ID: 40517953
The images can be up to 256x256:

    "The Size that defines the height and width, in pixels, of the images in the list. The default size is 16 by 16. The maximum size is 256 by 256."

Just do a search on Google for royalty free icons...
LVL 64

Accepted Solution

Fernando Soto earned 1400 total points
ID: 40517960
You can download the images that Microsoft uses at Visual Studio Image Library
LVL 34

Author Comment

by:Mike Eghtebas
ID: 40517965
Hi Mike,

I liked your x-name Idle_mind and always appreciated your greate inputs.

I downloaded VS2012 Image Library.zip from http://msdn.microsoft.com/en-us/library/system.windows.forms.imagelist.imagesize(v=vs.110).aspx

BTW, this is not going to be used for commercial purpose.

How can I include these images in my vs2012?
Hi Fernando,

Thanks for the tip. I just did it now I need to know how to include the package in my vs 2012 permanently?


Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 64

Expert Comment

by:Fernando Soto
ID: 40517967
Hi Mike;

Well not sure who you are responding to seeming Idle_mind has not posted to this thread. If you downloaded the file you can unzip it and all the directories should be marked and images in them. That all depends on where you will be using them some controls you can import them from a file location or you can load them via the Image class or you can add them as resources to the resource image dialog..

To your question, "Thanks for the tip. I just did it now I need to know how to include the package in my vs 2012 permanently?", Just store them on the file system and load the images when you need them.
LVL 34

Author Comment

by:Mike Eghtebas
ID: 40517969
Sorry Fernando, Mike Tomlinson's was known as idle_mind. When is submitted that post, he was the only expert in this thread. But later I saw your post and then edited my post.

I will try: add them as resources to the resource image dialog
LVL 64

Expert Comment

by:Fernando Soto
ID: 40517971
OK, I did not make the connection, Thanks.
LVL 34

Author Comment

by:Mike Eghtebas
ID: 40517974
Wow, 7,870 images still unpacking. Later I want to be able use the image collection such that it will use corresponding images based on the item is a folder, .xls, .doc, .txt, etc. But that will be handle in a later thread,
LVL 34

Author Comment

by:Mike Eghtebas
ID: 40518003

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question