I have five sets of code to create 5 populated panels (listview etc.) as sort of dialogs.
They then reside in memory and I use visible to show them or hide them.
Naturally the creation code is still present also.
My thinking is that memory can be saved by destroying these panels after each use, and using the already available creation code to re-create them when needed. Speed is not an issue.
Is there a way to destroy the panels without individually removing each item; which would defeat the object.
They then reside in memory and I use visible to show them or hide them.
Naturally the creation code is still present also.
My thinking is that memory can be saved by destroying these panels after each use, and using the already available creation code to re-create them when needed. Speed is not an issue.
Is there a way to destroy the panels without individually removing each item; which would defeat the object.