Apologies for what must seem a newbie question (but I'm a newbie!)
I'm building an MDI app, and have declared new instances of several child
forms in a module. Then, in the parent form (where the IsMdiContainer
property is set to True) I simply Import the module, and then behind some
button click events I call the child forms with something like;
FrmChild.Show()
I'm doing it this way because I don't want users to create multiple
instances of the same child form.
However, I don't know how to set the mdiparent property of these child forms
when I'm declaring them in a module.
If I declare them in the code of parent form I'd use something like;
Dim MyChild As New Form
MyChild.MdiParent = Me
MyChild.Show()
But this doesn't work when declaring the child forms in a module.
I know there's probably a very simple explanation. Please help!