G
gol
Hi,
When I create a Windows Form in VS 2005 I get the Dispose method created for
me in the Form.Designer.cs file. Some of the code that I get inside that
method takes care of cleaning up managed resources this way:
if (disposing && (components != null))
{
components.Dispose();
}
The question is whether this is enough to clean up all managed resources, or
I should add some code myself to clean up managed resources that I use.
Is System.Windows.Forms.Timer considered to be a managed resource? How is
this being cleaned up?
Thank you very much
When I create a Windows Form in VS 2005 I get the Dispose method created for
me in the Form.Designer.cs file. Some of the code that I get inside that
method takes care of cleaning up managed resources this way:
if (disposing && (components != null))
{
components.Dispose();
}
The question is whether this is enough to clean up all managed resources, or
I should add some code myself to clean up managed resources that I use.
Is System.Windows.Forms.Timer considered to be a managed resource? How is
this being cleaned up?
Thank you very much