the error message means you need to bind..
it's simple...
Private Sub UserForm_Initialize()
Set Me.TreeView1.ImageList = Me.ImageList1
End Sub
then in your tv s'thin like
TreeView1.Nodes.Item(Index).Image = 2
keepITcool
< email : keepitcool chello nl (with @ and .)
< homepage:
http://members.chello.nl/keepitcool
"What-a-Tool" wrote:
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.
Thanks