|
-
Oct 19th, 2008, 05:50 PM
#1
Thread Starter
Member
How to add a image in to Listview
ok i found this .
It is in vb6 and its not using any kind of Active x control

So how did he get the image in there?
-
Oct 19th, 2008, 06:01 PM
#2
Fanatic Member
Re: How to add a image in to Listview
Place an image inside of an ImageList control.
Set the ListView Image Lists Tab to use the Small Icon ImageList
When adding an item to the ListView set the small icon to the image you would like to use from the ImageList control.
Code:
Set lvwItem = ListView1.ListItems.Add(, , "ListView Text",,"ImageName")
-
Oct 19th, 2008, 06:08 PM
#3
Thread Starter
Member
Re: How to add a image in to Listview
 Originally Posted by Ace
Place an image inside of an ImageList control.
Set the ListView Image Lists Tab to use the Small Icon ImageList
When adding an item to the ListView set the small icon to the image you would like to use from the ImageList control.
Code:
Set lvwItem = ListView1.ListItems.Add(, , "ListView Text",,"ImageName")
i'm not talking about the small image... i am talking about the image he got in hes listview
-
Oct 19th, 2008, 08:07 PM
#4
Re: How to add a image in to Listview
Are you talking about adding 'icons' to items in a listview? You will need an ImageList and set the index when adding a listitem to the listview...
-
Oct 19th, 2008, 08:59 PM
#5
Re: How to add a image in to Listview
The listview has a picture property. Set that to the bkg bitmap you want. This presents a problem when the listview is scrolled. Therefore, if the listview will have scrollbars, you want the bitmap to probably be exactly the size of the listivew client area, then set the PictureAlignment property = Tile.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|