?
Solved

MDI Model problems

Posted on 2003-12-04
2
Medium Priority
?
269 Views
Last Modified: 2010-04-06
Hi ,
I have a MDIForm and some MDIChild forms ,
my problem is: when my MDIForm (Main form) load , all of my MDIChild forms load together
and also when i close a MDIChild form , that form only will minimize
plz help

Thanx
0
Comment
Question by:khafancoder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
prefix earned 60 total points
ID: 9879723
Goto Project->Options... Menu, swith to the "Forms" tab page, there are two panels: Auto-create forms and Available forms.
Auto-created forms are created automatically when the project starts, move them to the other panel and they won't be auto-created(but leave your MDI Form to keep your project at least has one main form) . And then, when you want to load the Child forms, use the code like this format:
    ChildForm1 := TChildForm1.Create(Application);

And besure to free your form like below when it close( or it will only be minimized ), in the FormClose event:

  Action := caFree;
  ChildForm1 := nil;
0
 

Expert Comment

by:friendkey
ID: 9880506
MDIChild forms cannot be hidden.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month10 days, 19 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question