Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

mestre fyoda

Listview com figura

Recommended Posts

achei um site em ingles para esse problema . You can see that the item is now in your listview, but it's somewhat plain. There are no images shown. To display images in the Listview you need to bind the listview to an ImageList (or multiple ImageLists). To do this just click on the Custom property and once you are in the property pages for the Listview click on the Image Lists tab. Select imlLargeIcons for the Normal ImageList and imlSmallIcons for the Small ImageList. Then exit. You will now have to tell VB what image you want to display with each item you add, since in reality we can have as many images as we want. To tell it that we want to display Image #1 from imlLargeIcons, and Image #1 again from imlSmallIcons we just have to do this:

Dim itmx As ListItem Set itmx = ListView1.ListItems.Add(, , "Item1",1,1)

Isso que está ai em cima ta la no site , mas tem mais coisas sobre listview .

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.