I have a Treeview on a form which works fine. I have placed an Imagelist on the same form. In the init event of the Imagelist I have placed the following code - This.Object.Listimages.Add(1,,LoadPicture("open.bmp")) - open.bmp exists in the path and this code executes fine.
In the init event of the Treeview I have placed the following code - This.Object.Imagelist=Thisform.Imagelist1 (the name is correct I checked a dozen times) - here I get OLE (Dispatch exception code 0 from Treectrl Invalid Object
Anybody have any ideas ?
TIA
John
To move a mountain start with the smallest stone