I’m learning c# & winforms and I have an issue on the app I’m making.
I have a flowlayout containing small pictures box, I made the flowlayout scrollable to have a gallery of sort I can then scroll through.
But when I reach a few hundreds pictures, it fills up my memory (even tho the pictures are already resized very small) and I cant display any more of them.
Is there a way to check that the picbox is in view and unload the ones that aren’t ?
Only thing I could find was the VisibleChanged Event but it seems to fire only when the controls is set to be hidden so that won’t do. But maybe I missed something.
Thanks
Biff is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.