Help: Loading forms at run-time. 
Author Message
 Help: Loading forms at run-time.

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
--
Star Wars: The Magic in the Wonder.
http://www.*-*-*.com/



Fri, 21 Jan 2000 03:00:00 GMT  
 Help: Loading forms at run-time.


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



Sat, 22 Jan 2000 03:00:00 GMT  
 Help: Loading forms at run-time.

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.


Mon, 24 Jan 2000 03:00:00 GMT  
 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.



Tue, 25 Jan 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Changing Form's BorderStyle property at run time but before form is loaded

2. Run-Time form loading - form name retrieved from database

3. Loading a form at run-time

4. Loading a form at run-time

5. Run-time error '31037': Error load form file

6. Load form at Run time

7. Define the form to load at run time...

8. Adding (loading) a Form at Run-Time ?

9. Loading a pre-existing form at run-time ?

10. Seting App path to the ADOCD control before at run-time form load

11. Deciding which form to load at run-time

12. Loading a pre-existing form at Run-Time ?

 

 
Powered by phpBB® Forum Software