473,657 Members | 2,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11641
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.Ima geSize = 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.Larg eImageList = MyImageList

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

Jody

"luis" <an*******@disc ussions.microso ft.com> wrote in message
news:F8******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.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.c om/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******** ******@TK2MSFTN GP12.phx.gbl...
* "=?Utf-8?B?bHVpcw==?=" <an*******@disc ussions.microso ft.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.c om/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****@blowgoa ts.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
1919
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 painting in the listview is the image delete, I supose that the problem is that the image exist in the imagelist, in order to solve this problem I clear the imagelist and add all the images captured, but i have another problem now, some time when I...
2
337
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 virtual listview + status images to make my listview fast.. pls let me know if anybody have any idea of status images?????? it's very urgent thanks Anushya
2
8620
by: Kanaiya | last post by:
hello how to put images in either listbox or listview.bye. -- With regards, Gangani Kanaiya.
2
8526
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 like "gcnew is undeclared error",how to deeclare 'gcnew" and when i am using in runtime to change the size of images in imagelist in listview control in .net(forms application) by chnging one trckbar(like tb1->Value),
6
6854
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 code I used in VB6 which all appears to run ok but doesn't actually create the images ever. These are generic functions to set the images for any listview. Please help,
1
4635
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 in my code I do the following to add items to the ListView. lvi = New ListViewItem With lvi .Text = "xxxxx" .SubItems.Add("yyyy") .ImageIndex = 1
0
1238
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 listview which items have been selected. I have recently tried assigning the images to the controls after initialize component and it is a little more stable, but if you close the form and immediately go back in the images are lost.
1
1604
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 dragging items that have images. I first thougth that an item has its image and I could drag the complete object, but I see that in the second listview the image doesn't appear. It appears again if I move it again to the first listview.
1
1786
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 control. What do I need to do to see the Images same as I am looking using windows explorer thumbnail. Please help me as I am stuck on this for almost two days now. Thanks for any help you can provide.
0
8421
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8742
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.