Solved

how to customize image size of ImageList

Posted on 2011-02-21
4
324 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
ID: 34941879
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
ID: 34941983
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
ID: 34942100
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
ID: 35253881
Thanks
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…

823 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