Forms Questions

  • Thread starter Thread starter Ken
  • Start date Start date
K

Ken

During testing, I noticed that if I open a second form for
an app, let's say frmConfig from the initial form frmMain,
I can open the memory applet and see that "frmMain"
and "frmConfig" show up.

Through, experimentation, I noticed that it is possible to
close frmMain without closing frmConfig.

My question is, what are some guidelines for managing
forms in this way so that you do not have orphaned
subforms?

Is it preferrable to use panels instead and then hide and
show panels based on the current program state?
 
If you close frmMain, the process message pump (started with the call to
Application.Run) should end, and all app resources should die. You do,
however, need to make sure that the form is both closed *and* disposed for
this to occur.
 
Back
Top