Solved

Load ImageList from System.Drawing.Bitmap

Posted on 2010-09-10
6
1,087 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now