Tuesday, 3 December 2013

How to show hide form(Desktop application) C#

Leave a Comment
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 =)

0 comments:

Post a Comment

Subscribe to our newsletter to get the latest updates to your inbox.

Your email address is safe with us!




Founder of developersnote.com, love programming and help others people. Work as Software Developer. Graduated from UiTM and continue study in Software Engineering at UTMSpace. Follow him on Twitter , or Facebook or .



Powered by Blogger.