you're using
option EXPLICIT ?
you have a Microsoft ImageList Control 6.0 (SP6)
on the form?
you have a Reference to :
Microsoft Windows Common Controls 6.0 (SP6)
(c:\windows\system32\mscomctl.ocx)
(service pack should not be a problem..)
if it's on the form then
typing me.
should popup the controls on the form..
the ilstMain MUST be there!
you've put some icons in the imagelist?
via properties..custom you;ll get the property bag.
Tab 1 must indicate 16x16!
Tab 2 you must add the icons or bitmaps.
16x16 pixels 256 color (or 24 bit)
keepITcool
< email : keepitcool chello nl (with @ and .)
< homepage:
http://members.chello.nl/keepitcool
"What-a-Tool" wrote:
Yeah - I have a form, I have a treview on it, I have an image list on
it , and I've got the names straight.
I have my tree view working just fine, thank you. This friggin image
list is drivin me nuts, though.
With Me.tvwMain
Set .ImageList = ilstMain
Set tn = .Nodes.Add(, , strSWDefaultFolder, strFolder, 1, 2)
End With
If I put the Me identifier in front of ilstMain, I get an Invalid
Object error.
If I test as is, I get an "imagelist must be initialized" error