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

x
?
Solved

how to customize image size of ImageList

Posted on 2011-02-21
4
Medium Priority
?
329 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
[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
  • 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 1500 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

Basic Security of Your VPC

So, you’ve got this shiny new VPC and a fancy new application configured on your EC2 servers ready to go. This application is only accessible from your computer, which is great for security, but you need your users to be able to access it! So, what’s the easiest way to do this?

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

722 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