
Help: Loading forms at run-time.
If all the MDI childforms have the same layout and controls, then it
may be possible to use a form template, say called frmTemplate.
(I believe you would first have to have the parent form created
before creating the template form. Of course, the MDIChild property
of the template form would have to be set to True.)
Then a new child form could be declared at runtime thus:
Dim frmNewForm as New frmTemplate
You would then assign the appropriate variables to the
new child form and show it:
frmNewForm.Show
Again, this may work in your case only if all the forms are the same.
Quote:
> >>I am working on a program that downloads new MDI Child forms off the
> >>internet as it needs them. I've got it to download the files, but what I
> >>don't know is how do you load a child form into a program during run-time.
> >>Is this possible. If it isn't then my project is doomed.
> >>Thanks in advance for any help
> >>Jeff
> >Sorry to say, your project is doomed. I've seen several other people ask how
> >to load MDI children at run-time and have yet to see a good answer.
> >By the way, how are you downloading a MDI child form?
> >You might want to consider ActiveX Documents or classic HTML (after all, web
> >pages are only downloaded when they're needed).
> >Good luck,
> >Darrell Speck, MCSD
> or, you could LOAD a new MDIChild on the fly, and then populate it
> with controls on the fly. Slow, cumbersome, but quite flexible.