Hi all,

I'm currently writing a program where one form loads another. The next form does stuff, but it won't display until it finishes doing the stuff, but I need it to appear before, since it tells you what it's doing.

Example:

"form1", onclick of button "1":

Code:
form1.visible = false
load form2
form2.visible = true
unload form1
"form2", Form_load event:
Code:
<DoSomeStuff>
graphic1.visible = true
<DoSomeStuff>
graphic2.visible = true
What should happen is that form 1 dissapears, form 2 appears, and as each "<DoSomeStuff>" happens, the user can see each graphic load.

What actually happens is, you click the button "1", the form pauses for a sew seconds (as the actions in the Form_load of form 2 are being carried out), and then form 2 loads, with all the graphics in place.

I thought I could solve it by putting all the code from form 2's Form_load event into a seperate function, I.e.

"form2", Form_load event:
Code:
SecondBit
"form2", Private Function SecondBit:
Code:
<DoSomeStuff>
graphic1.visible = true
<DoSomeStuff>
graphic2.visible = true
But it still had the same problem. I've also tried using the "sleep" thingy and a timer in form_load to give it time to load the form before executig the code, but it just adds to the loading time.

So, how would I go about doing this?