dispose?

Cecilia

Member
Joined
Aug 14, 2007
Messages
24
Programming Experience
Beginner
I have a question about where and how to dispose the controls, say, in Form1, a Tabcontrol is generated programmatically, different numbers of pages are added to that tabcontrol programmatically depending on the need, my question is since they are all created programmatically, do I need to handle the dispose by myself, somewhere? Or it will be taken care of when Form1 close?

Thanks! Or anyone could recommend a good book on .NET, where I can find all the answers to these questions.
 
Not if they stay on form until it dispose, which automatically dispose all attached controls. If you remove components during runtime you should dispose them before letting go.
 
Back
Top