WinForm Modal dialogs need to be explicitly disposed

Came across an interesting problem today. It turns out that WinForm modal dialogs are only hidden once they have been used. You need to explicitly call their Dispose method if you want to mark them for garbage collection. There’s a MSDN page with more information about this.

Posted on 29 Apr 05 by Helen Emerson (last updated on 29 Apr 05).
Filed under .NET