Have images stored in an imagelist that I want to place in a treeview control. Keep getting the message "Image list must be initialized"
Can anyone direct me to a code sample of this? Can't seem to find anything. I have already added the images that I want thru the "custom properties" property window.
Right now, what I have is :
With tvwMain Set .ImageList = Me.ilstMain '(also tried Me.ilstMain.ListImages) tn = .Add(,, strDefPath, strDefFolNm, 1, 2) End With
This causes an error: "Type Mismatch" If I remove the "Set", it will make it thru the ".ImageList =" line, but when I reach the ".Add" line I get the error : "ImageList must be initialized"
I am using Microsoft ImageList Control 6.0 (SP4) and have a Reference to Microsoft Windows Common Controls 6.0 (SP4), and am not using Option Explicit.
Is there some sort of issue with SW and this image list? I've been going nuts with this, and can't get it to work no matter what I try.
Thanks for any help.