>how to make use of imagelist in listview or treeview.
>URGENT!!
>Thaks a lot.
You must initialize the Imagelist first by adding images to it.
With MyImagelist
.ListImages.Add(,'Image1',LoadPicture('MyPictureFile1.bmp'))
.ListImages.Add(,'Image2',LoadPicture('MyPictureFile2.bmp'))
Endwith
Then in the Treeview/ListView, you can associate the two by assigning the ImageList property to your Imagelist object.
MyTreeview.Imagelist = MyImagelist
When you add a node to your treeview, you can specify the index of the image you want to use with that node.
With MyTreeview.Nodes
.Add(,4,'key expression','Display text','Image2')
Endwith
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao