Set Me.TreeView1.ImageList = Me.ImageList1 :gives an error "Invalid object"
--
/ Sean the Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
"keepITcool" wrote in message
...
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