I\'m using a TableLayoutPanel
which is dynamically filled with other TablelayoutPanels
.
Now I\'m wondering what happens when I call Table
There is a bit of confusion in your question. Clear()
will remove references and objects will be collected by garbage collector.
But, you are also using the word dispose
. Cleared objects will not be disposed in the sense that their Dispose
method will be called.
Thus, if you are not using those objects anymore, and you want Dispose
to be called on them, you have to do it yourself.