Solved

MDI Model problems

Posted on 2003-12-04
2
263 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
Comment Utility
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
Comment Utility
MDIChild forms cannot be hidden.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now