Mr. Skeet:
One more question related to my first. I'm trying to override the Dispose()
method for the form. However, when I try...
public override void Dispose()
{
...
}
I receive an error, stating it's not virtual. Of course it is not virtual,
so instead of the keyword 'override,' I use the keyword 'new.' However, I
still see that my Dispose() method is not being called. What can I do to
assure that my Dispose method is being called without having to dispose of it
manually after the Application.Run(frm)?
Thank you again.
Trecius
"Jon Skeet [C# MVP]" wrote:
Trecius <Tr*****@discussions.microsoft.comwrote:
I've a question regarding a finalizer. Why is it that the finalize method
of a form is never being called?
<snip>
Why does it not beep or show a message box?
Application.Run calls Dispose on the form. Disposing the form
suppresses the finalizer.
--
Jon Skeet - <sk***@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com