Click to See Complete Forum and Search --> : modal forms


February 2nd, 2000, 01:57 AM
I want to display 4 modal forms at a time.
form1 call form2
form2 calls form3
form3 call form4
form4 should be the active form.
After form4 closes ,control should go to form3,then form2 and form1.
I am invoking the forms in Activate event.
But it is in infinite loop.
As the form3 activate is getting called after form4 is closed .

I need a solution wiothout using global variables.
Pl. help

Nick A.
February 2nd, 2000, 05:11 AM
In Form1_Load type:

[vbcode]
Form2.Show vbModal
[vbcode]

In Form2_Load type:

[vbcode]
Form3.Show vbModal
[vbcode]

etc.

This should work the way you want it.