I created a MIDI-Form with a child forms.

When I click the command button (command1) on the currently shown Child form, in the background there are some calculations which take about 6 seconds. During this periode I want to hide the Child form and show an Form that indicates " Calculation please wait" So I placed the commands as followed:


Sub command1_click()

Form1.hide

Form2.shown (Form with label "Calculation please wait"


Different Iterations

......

Form2.hide

Form1.show

end sub


But instead of hiding the Form1 it is still visible

And of Form2 only the frame is visible.

What do I have to do to get the required result ????


Instead of hiding the FORM1 it would also be o.k. if the Form2 is visible on the top of Form1. Do you have any idea how to arrange the sequence of the forms

(bring to front, bring to back?????)


Thanks Peter