How to show hide form(Desktop application) C#

Usually when programmer to hide the form from User they will use this command :

this.Hide();


But the problem is..how to unhide that form..So the this is a solution to unhidden the form..

Scenario

You have 2 Form, Form1 and Form2. the situation is form2 was hide and you want to show it back

 foreach (Form form in Application.OpenForms)
{
     if (form is Form2)
     {
       form.Show();
         break;
     }
}


By
NOTE : – If You have Found this post Helpful, I will appreciate if you can Share it on Facebook, Twitter and Other Social Media Sites. Thanks =)

Popular posts from this blog

Example to disable save as certain file type in SSRS Report Viewer

Phone book application example - Java

Modal Popup Message Box ASP.NEt C# Example