That’s what com was invented for. Use the Delphi wizard to make a com wrapper of the form.

Then Expose the com object in said application.

 

In the parent app create the TOleControl wrapper. Set Border Style to none and parent it to an MDI Child form in the

App.

 

There is no other way. Its called memory pollution if you let it happen.

 

By the way… I Hate COM and I think what you are trying to do sounds crazy.

If you need info in another app you should convert it into a dataproviding app, and pass data over tcp to be displayed in the gui of your choice.

 

If you don’t have the source for both apps then give up and ring the software vendor.. J

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Coulter
Sent: Wednesday, 5 April 2006 3:58 p.m.
To: [email protected]
Subject: [DUG] Assigning a forms parent

 

Hi All.

I have an app. that I would like to "Try" and assign the form to another running app.

 

The other app. is an MDIparent, and I want to make it "appear" as if the other apps form is just another form in the other application.

 

I tried setting the forms parenthandle to the handle of the other app, but it didnt really work.

 

Anyone got any ideas?

 

Jeremy

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to