Solved

Load ImageList from System.Drawing.Bitmap

Posted on 2010-09-10
6
1,140 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 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb.net convert long time to mm:ss 23 35
Find date of 2nd Thursday of each month 3 45
How do I copy a form and rename it in VS2015 2 32
Send SMS from vb.net desktop app 30 51
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

759 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