C
Cor Ligthert[MVP]
Martin,
Armin wrote it so nice.
As extra: a ShowDialog form is nothing more then an old Dialog and therefore
it has unmanaged resources.
Before it goes out of scope it is clever to do use its dispose method to
release the unmanaged resources.
That dispose method is implemented by the class where the Form derives from:
the component class.
Unmanaged resources have nothing to do with the managed objects.
A managed object can use (that becomes with all new thing every time less)
an unmanaged resource.
Therefore Yes it is wise to use the form.dispose (unmanaged resources
method) as you have created that form new in your form and it will be go out
of scope.
Cor
Armin wrote it so nice.
As extra: a ShowDialog form is nothing more then an old Dialog and therefore
it has unmanaged resources.
Before it goes out of scope it is clever to do use its dispose method to
release the unmanaged resources.
That dispose method is implemented by the class where the Form derives from:
the component class.
Unmanaged resources have nothing to do with the managed objects.
A managed object can use (that becomes with all new thing every time less)
an unmanaged resource.
Therefore Yes it is wise to use the form.dispose (unmanaged resources
method) as you have created that form new in your form and it will be go out
of scope.
Cor