Dll reference between forms

  • Thread starter Thread starter Nicolas
  • Start date Start date
N

Nicolas

I got an exe which include a form MDI ===> FORM A
I got another dll wich include a form =====> FORM B

In my FORM A I can launch FORM B and assign FORM B.MdiParent = FORM A

But from FORM B I cannot launch any functions from FORM A
I think that the dll (form B) have no clue about FORM A extra function other
then the basic one like text , name etc.

How can I refer back to FORM A from FORM B

This main application is kind of modular so my main application FORM A
doesn't really now how many mdiChildren it will handle assuming that today I
got FORM B dll then tomorow I'll have FORM C dll etc... They all have to be
able to inter connect

Thanks for the help
 
Nicolas said:
I got an exe which include a form MDI ===> FORM A
I got another dll wich include a form =====> FORM B

In my FORM A I can launch FORM B and assign FORM B.MdiParent = FORM
A

But from FORM B I cannot launch any functions from FORM A
I think that the dll (form B) have no clue about FORM A extra
function other then the basic one like text , name etc.

How can I refer back to FORM A from FORM B

Put Form A in another DLL and reference it from both projects.

The dll must have been developed before the Exe otherwise you can't
reference the dll from the Exe. Consequently the dll project can not know
the Form in the Exe because the DLL has been developed before.
 
Back
Top