Solved

how to customize image size of ImageList

Posted on 2011-02-21
4
320 Views
Last Modified: 2012-05-11
how to customize image size of each image in  ImageList. By doing it in loop for each image the imageList become reset and the images get vanished. Any idea how to manage it. Without costomizing the images are distorted in the listview. I want Windows like thumbnails of images.
0
Comment
Question by:sigmatec_pk
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:John Claes
Comment Utility
You can use the property upon your ImageList . ImageSize
This must be a Size Object and must be set before adding the Images.

Source + Info
http://msdn.microsoft.com/en-us/library/system.windows.forms.imagelist.imagesize.aspx


Regards
Poor beggar
0
 

Author Comment

by:sigmatec_pk
Comment Utility
thanks for reply.

Infact i want my images of diffenent sizes dont strech. I want Windows explorer -like thumbnail view. Any help??

I tried this
http://www.pcreview.co.uk/forums/windows-like-thumbnails-listview-t1935383.html

but didnt get it properly.
0
 
LVL 10

Accepted Solution

by:
John Claes earned 500 total points
Comment Utility
Looking at the link provided :
It seems a very clear and usefull page to get it done.
where did it go wrong?


What they do in a short way

Get images
Run using For by all and use their method "preserveAspectRatio" to get ratioFree images
these images are set into the ImageList.
0
 

Author Closing Comment

by:sigmatec_pk
Comment Utility
Thanks
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

12 Experts available now in Live!

Get 1:1 Help Now