Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MDI Model problems

Posted on 2003-12-04
2
Medium Priority
?
270 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

604 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