Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4165
Image List vs Resource File and LeftImages.Add vs Override.NodeAppearence.Image
posted

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

Parents Reply Children
No Data