Default
Google

How can I destroy a child form instead of minimizing it?

Applies To: C++Builder 1 or higher
Category: Knowledge Base

When I close a child form in my MDI application, it minimizes instead of being destroyed. How can I correct this?
 
 1.
  Create an MDI application. For more information, read
      How can I create MDI applications?
 
 2.
  Edit the OnClose event of your child form:
 
void __fastcall TForm2::FormClose(TObject *Sender, TCloseAction
    &Action) 
{
    Action = caFree; 
}

C++Builder Developer's Network
Copyright © Yoto Yotov



Acquiring image from ProHosting Banner Exchange