Solved

trouble with MDI forms

Posted on 1998-11-11
3
139 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
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
dwwang earned 100 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

24 Experts available now in Live!

Get 1:1 Help Now