Set MdiParent to null (Nothing) in FormClosed

Posted by serhio on Stack Overflow See other posts from Stack Overflow or by serhio
Published on 2010-03-15T14:07:10Z Indexed on 2010/03/15 14:09 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

In my project I observed that in a FormClosed method (that handles FormClosed event) is set MdiParent = Nothing (null).

This code makes (? no idea why) that OnLoad(method) on some child panels is raised.

Is there any sense to set MdiParent to null (Nothing) in FormClosed?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about winforms