Problem with hiding forms [resolved]
I have 2 forms and a module. Form1 basically displays "waiting..." so the user knows the program is loading the information on form2 The module has the code:
Code:
Dim x as new form1
x.show()
dim y as new form2
y.showdialog()
In the form_load for form2 I have the following code:
Code:
form1.activeform.activate()
form1.activeform.hide()
What happens is that when form2 finally loads it flashes up and then closes right away. Any ideas? I thought this had worked before for me and the logic seems right. Maybe I just missing something simple, but that's where your help comes in. Thanks!