Solved

trouble with MDI forms

Posted on 1998-11-11
3
146 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 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