Solved

MDI Model problems

Posted on 2003-12-04
2
265 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
2 Comments
 
LVL 1

Accepted Solution

by:
prefix earned 20 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best Firemonkey component pack 1 104
Delphi application Soap connection 5 103
how to resize animated Gif image in delphi ? 1 31
Installshield for Embarcadero EX 10.1 Berlin 4 40
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

772 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