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

x
?
Solved

Load ImageList from System.Drawing.Bitmap

Posted on 2010-09-10
6
Medium Priority
?
1,178 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 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

963 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