Solved

Load ImageList from System.Drawing.Bitmap

Posted on 2010-09-10
6
1,131 Views
Last Modified: 2012-05-10
OK, I found this program on the internet and for the life of me I can NOT figure out how this guy did this, so I'm hoping someone can help me!

See the attached screen shot, but somehow this guy figured out how to load the System.Drawing.Bitmaps to the this ImageList and I would like to do the same thing in my program, but I don't know how he did it!  Does anyone know how to do this in the design view as shown in the screen shot?

Thanks,
Mark
ImageList.jpg
0
Comment
Question by:smithmrk
  • 4
  • 2
6 Comments
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33646546
Double click on ImageList control on Toolbox to add to your form (not directly on the form). In the property list (see screen shot below), click on ... button to open the image collection editor and then click on Add button to add the images to the list:

Screenshot.PNG
0
 
LVL 17

Accepted Solution

by:
Zhaolai earned 500 total points
ID: 33646742
If you want to have all the images named System.Drawing.Bitmap, after you load the images to the list, just delete its name in the property list, see screen shot below:

Screenshot.PNG
0
 

Author Comment

by:smithmrk
ID: 33646758
I think your missing my point, I know how to add images to the Imagelist, what I can't figure out is how this person linked the images from the System.Drawing.Bitmap to his ImageList.  Hitting Add just allows me to add images from my local computer one, by one.

Mark
0
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 17

Expert Comment

by:Zhaolai
ID: 33646790
See my second post above. Just delete the image name from the Name property, then they are all System.Drawing.Bitmap.
0
 

Author Comment

by:smithmrk
ID: 33646842
OK, now I guess I'm a bit confused by this persons program.  I thought that his images shown were from the System.Drawing.Bitmap or a collection of these images I could use.  I guess I would have to find these pictures (bitmaps) and load each one, by one.

Thanks,
Mark
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33646961
Also by deleting names, you now have only one way to access the images in the list, by index. Of cause, you could define constants for the indexes.
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

713 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