How do I work with Winforms application with several forms

Hello,

I have 2 forms in my WinForms application. I show first form then hide it and show second form by instantiating it in first one.

My question is how do I unhide first form from within second form



Answer this question

How do I work with Winforms application with several forms

  • Lucian Ghitoc

    do you really need to hide the forms

    you maybe better in using ShowDialog() as the form caller wont be able to be accessed by the user until they close the form infront (child)

    you could pass a reference to the form from the caller to the child form so the child can hide/show the parent but I think this maybe bad practice.



  • How do I work with Winforms application with several forms