I am not using the dispose statement....
What I am trying to say is that when the user is switching between tabs and
code is instructing it to add certain controls are these controls being
added to the resources being used or is it pulling it from what is already
out there?
What I am tring to avoid is if the user clicks on 15 different tabs are they
going to have consumed resources for 15 "cancel" buttons (create 15
instances) or will it be using the same cancel button resource (only one
instance) it did when it began? If I need to manually dispose of the
"cancel" button instance between tab selection changes how would I do that?
"scorpion53061" <sc****************************@yahoo.com> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
I am reusing the same controls in a large tab control. Should I be doing
the dispose statement or soemthing else to remove the items from memory? Or
will the framework know to destroy it when it needs to?