>I have an ImageList and a ListView a form.
>
>In the Init of the form I have:
>
>
>ThisForm.oleListView.ImageList = ThisForm.oleImages
>>
>and I still get the "ImageList must be initialized..." error.
>
>Anyone know why?
Do you load any images into ImageList during its Init? If not, you can't associate it with another control. I put the following in my Treeview/ImageList container for this purpose:
With THISFORM
if type(".OleIL.ListImages") = "O" ;
and !isnull(.OleIL.ListImages) ;
and .OleIL.ListImages.Count > 0 then
.OleTV.ImageList = .OleIL
endif
Endwith
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao