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?
-
- Create an MDI application. For more information, read
- How can I create MDI applications?
-
- 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