Solved

MDI Model problems

Posted on 2003-12-04
2
264 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
System restore point 4 91
QRReport  TQrmemo vertical stretching 1 42
Delphi 2 51
Installshield for Embarcadero EX 10.1 Berlin 4 22
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now