Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Question for rpo / Roman ????

Posted on 1999-07-27
Medium Priority
Last Modified: 2010-04-04
          I saw your answer for MDI Child forms in dlls
(Q.10181952) and reckon it was a great answer. I just have a small follow up question for you. If I wanted to access the MDI Child form from a unit that I do some processing in
how can it be done. In your Dll code you create the forms via the functions and that works fine. I am just unable to access the form from anywhere else ie another unit or another form. I have tried to include the unit in the uses clause to no avail. I am wondering is this an inherent problem or can it be overcome.


 WESTY :)  
Question by:westy100697
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

Accepted Solution

rpo earned 200 total points
ID: 1391368
Westy, this is simple (it is a pseudocode):

unit CommonMDIChild;

uses Forms,MDIChildLibInt;


  Child : TForm;

procedure MyProc;


Now You can include the CommonMDIChild unit in uses clause and You will have access to Child form.

You need separate variable for each form You get from DLL.


Author Comment

ID: 1391369
      I figured it was something like that. For the moment I used procedures rather than functions to initialise the forms.

 ie MyForm := TMyForm.Create(Application)

rather than  Result := TMyForm.Create(Application) and this enabled me to access the forms everywhere.

I appreciate you getting back to me so quickly. I would of e-mailed you a question but couldn't find it at expert-exchange.

Thanks again,

WESTY :)  

Featured Post

Independent Software Vendors: 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA:…
Suggested Courses

715 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