Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Load ImageList from System.Drawing.Bitmap

Posted on 2010-09-10
6
Medium Priority
?
1,166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

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!

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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 …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
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…

721 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