Hi,
I have been testing a form with a tree control with a couple of 100 nodes. Each node has a single image.
I was using an imagelist with mainly .ico files in that imagelist. I was using LeftImages.Add.
I changed all the code to be Override.NodeAppeareance.Image = resourceSomePicture.pngName.
Now:
1) The form takes a very long time to load
2) if i close and open the form a few times i get out of memory errors.
What is the right way to do this? ImageLIst? Resource File? LeftImages? NodeAppearance?
Why the memory errors? Do I need to do something special on the dispose event of the form?
Thanks,
Mel
Hello Mel,
I believe that this is happening because you are creating 100 other appearance objects. Is it ok when you are using LeftImages.Add()?