?
Solved

trouble with MDI forms

Posted on 1998-11-11
3
Medium Priority
?
148 Views
Last Modified: 2010-04-04
i use TForm1.Create(self) to call a form child but it does not work.the compilator and delphi just gave some direcctions. and some violation exceptions error.  
0
Comment
Question by:jabita
[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
3 Comments
 
LVL 4

Accepted Solution

by:
dwwang earned 200 total points
ID: 1346626
I think you sould write:

mymdichildform:TMyMDIChildForm;

mymdichildform:=TMyMDIChildForm.create(Self);

Please note that not to define the

var form1

in the ChildForm's code, as well as not to put the child form in the autocreation form list in the options of the project.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1346627
Ya, I gave you an answer in your previous question.... Why did you ask it a second time... I couldn't reply immediately, but as soon as I got some spare time I got together some sources to show you the way to do it... Go check it out,,,,

Cheers,
Viktor
0
 
LVL 4

Expert Comment

by:dwwang
ID: 1346628
Does my answer work?
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

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 this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

765 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