T
theintrepidfox
Dear Group
My apologies for the pretty basic questions following. Feeling like an
idiot. Tried finding out from MSDN and Groups but still not wise. I'll
worship your replies and be grateful for information about resources.
Thanks very much for your help and efforts!
Martin
Simple Case:
Application with three forms, Form1 as startup. Each form contains two
buttons for the purpose to display one of the other two forms.
E.g. clicking on button ShowForm2 on Form1 will display Form2 and hide
Form1.
Now I wonder:
What do I put in the ShowForm1 Button_Click event to show Form1?
I saw examples of declaring a New Form1 but then I end up with two.
If I say Form1.ActiveForm then an exception is thrown.
The other thing is do I load all forms when the application starts and
hide them till needed? Seems to me like a waste of resources.
My apologies for the pretty basic questions following. Feeling like an
idiot. Tried finding out from MSDN and Groups but still not wise. I'll
worship your replies and be grateful for information about resources.
Thanks very much for your help and efforts!
Martin
Simple Case:
Application with three forms, Form1 as startup. Each form contains two
buttons for the purpose to display one of the other two forms.
E.g. clicking on button ShowForm2 on Form1 will display Form2 and hide
Form1.
Now I wonder:
What do I put in the ShowForm1 Button_Click event to show Form1?
I saw examples of declaring a New Form1 but then I end up with two.
If I say Form1.ActiveForm then an exception is thrown.
The other thing is do I load all forms when the application starts and
hide them till needed? Seems to me like a waste of resources.