D
Dave
I have a button on Form1 that hides the form and displays Form2:
Form2 myForm2 = new Form2();
myForm2.Show();
this.Hide();
After I do some work in Form2 I want to close it and redisplay Form1. I can
close the form with:
this.Close();
But how to I invoke the Show method of Form1? IOW how do I make Form1
visible again?
What I want to call while closing Form2 is "Form1.Show(); " but this throws
an object reference error.
I don't need to instantiate a new Form1. I just need to reference the one
that already exists and make it visble.
Arrrgh!!!! Can someone provide some insight?
Form2 myForm2 = new Form2();
myForm2.Show();
this.Hide();
After I do some work in Form2 I want to close it and redisplay Form1. I can
close the form with:
this.Close();
But how to I invoke the Show method of Form1? IOW how do I make Form1
visible again?
What I want to call while closing Form2 is "Form1.Show(); " but this throws
an object reference error.
I don't need to instantiate a new Form1. I just need to reference the one
that already exists and make it visble.
Arrrgh!!!! Can someone provide some insight?