Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display DDL form in the main exe project

Status
Not open for further replies.

bbresc512

Programmer
Mar 10, 2004
4
CA
Hi all
here is what I'm trying to do:
I have a main exe project that dynamically loads different dll's, which contain different forms. The main project has a form and a panel. I'm trying to create a form in DLL and display it in the panel in the main exe project.
I saw someone saying that he had done it using the ManualDock method of the DLL form. Here is the link

I couldn't do it
Does anybody have a clue what can be done here?
I can't use AtiveX and BPL's. It is an old project and it will take me forever to change it.

Thanks in advance
 
if you read the link carefully,the guy says that it doesn't work with a panel. he used a pagecontrol instead. also read the solution to this problem because it can be useful to you...

cheers

--------------------------------------
What You See Is What You Get
 
sorry, I didn't explain my problem properly
I tried the pagecontrol too. I can't get the DLL form displayed in the main application at all, in anything.

I tried exporting a DLL function that returns the created form to the main application and then assigning the Parent property of the returned form to a pagecontrol.

I tried passing the pagecontrol to the DDL and then trying to use Parent property or ManualDock function - nothing is working.

Does anyone have a sample code connecting a pagecontrol (or any control for that matter) to a form created in a DLL?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top