Hi Leo,
the module has to know wich shall be the MDIParent.
There are two options:
1. Their is a shared variable (or a variable in a module) that is assignd
the parent.
This would be the best option if there is one MDIParent in your app, wich
most probably is true.
2. The method puting the form in the container has a parameter wich is the
MDIParent.
Then the caller has do know, which form shall be the MDIParent.
>I am trying to figure out how to assign the child form to the mdi
>container,
[quoted text clipped - 10 lines]
>
> Leo
Leo - 06 Apr 2005 17:15 GMT
Thanks for the help. I used suggestion 1. I created a public variable and
assigned the mdi container (MDIFORM1) to it on program start.
Public mdi as Form
mdi = Me
Then in the code mudule it became simple:
Dim fm as new Form1
fm.MDIParent = mdi
It works.
Thanks
Leo
> Hi Leo,
>
[quoted text clipped - 23 lines]
> >
> > Leo