473,386 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Images in Listview

Hi

I would like to use a listview to show the tumbnails of images, the problem is the the images are shown too small, Is there any way to change the image size

If it is not possible, is there another control suitable to do this?

Thanks
Nov 20 '05 #1
5 11631
With the ListView and ImageList controls, set the following properties:
'Set the size of the image list to 64,64 (or whatever other size you
want)
MyImageList.ImageSize = New Drawing.Size(64, 64)
'Set the View property of the listview to use Large Icons
MyListView.View = LargeIcon
'Link the imagelist to the listview
MyListView.LargeImageList = MyImageList

The displayed size of the images is dependant upon the size defined in the
ImageList.

Jody

"luis" <an*******@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
Hi!

I would like to use a listview to show the tumbnails of images, the problem is the the images are shown too small, Is there any way to change
the image size?
If it is not possible, is there another control suitable to do this??

Thanks

Nov 20 '05 #2
* "=?Utf-8?B?bHVpcw==?=" <an*******@discussions.microsoft.com> scripsit:
I would like to use a listview to show the tumbnails of images, the problem is the the images are shown too small, Is there any way to change the image size?

If it is not possible, is there another control suitable to do this??


<http://vbaccelerator.com/article.asp?id=4513>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
How do you store your links Herfried? Knowledge base?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ua**************@TK2MSFTNGP12.phx.gbl...
* "=?Utf-8?B?bHVpcw==?=" <an*******@discussions.microsoft.com> scripsit:
I would like to use a listview to show the tumbnails of images, the problem is the the images are shown too small, Is there any way to change
the image size?
If it is not possible, is there another control suitable to do this??


<http://vbaccelerator.com/article.asp?id=4513>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #4

Hi

Thanks for both anwers, now i can see the images well, but now i have another problem, I need this for a pocket pc software, and i have the problem that the listview left a lot of space between the elements, so I only can show 2 items per row.
There is any way to specify this margin??? , or another way to fix the proble

Thanks for all
Nov 20 '05 #5
* "CJ Taylor" <no****@blowgoats.com> scripsit:
How do you store your links Herfried? Knowledge base?


Everything in my brain...

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Silvia | last post by:
Hi, I have a program that capture images and put this into a listview (using imagelist), the problem is when I delete de image the listview, when do that and capture another image, the image...
2
by: Anushya | last post by:
Hi all i tried to add items to listview using addrange and it is very slow.. then tried using virtual listview which allows to add only text(it is quite fast).. Now i just want to mix up this...
2
by: Kanaiya | last post by:
hello how to put images in either listbox or listview.bye. -- With regards, Gangani Kanaiya.
2
by: Sanjeeva Reddy | last post by:
hai Anti Keskinen, i have used the following code MyListView->LargeImageList->ImageSize = gcnew System::Drawing::Size(100, 100); // Sets large image size to 100, 100 here i am getting error...
6
by: Samuel R. Neff | last post by:
I'm trying to put icons in the header of my ListView. All the .net posts I found refer to an example on thecodeproject which is no longer there (part of commercial package now). I converted the...
1
by: Steve | last post by:
OK, I am stumped. I cannot for the life of me get images to show in ListView items while the view is set to Details. I create an ImageList, set the SmallImageList to point to the ImageList, then...
0
by: James L | last post by:
I have 2 different forms that contain treeviews and listviews. The former is used to populate the latter. For some reason the control randomly lose the images. So you cannot tell in the...
1
by: Diego F. | last post by:
Hi. I'm having a problem with listview controls. I'm using a control that adds drag and drop functionality to a listview (I get the control from codeproject). Now I'm having problems when...
1
by: Mark | last post by:
I am trying to show many Images in a Listview controls with size(100,100). But some of the images sizes are big, like width=238 and height 50. These images does not appear proper in the listview...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.