Showing a hidden form

Posted by Arcadian on Stack Overflow See other posts from Stack Overflow or by Arcadian
Published on 2010-06-09T12:26:52Z Indexed on 2010/06/09 12:32 UTC
Read the original article Hit count: 165

Filed under:

Newb question:

how do i show a from that have been hidden using

this.Hide();

I have tried

MainMenuForm.Show();

and this just says i need an object ref

have tried:

MainMenuForm frmMainMenu = new MainMenuForm();
frmMainMenu.Show();

which seems to show the appropriate form. but when you exit the app, it is still held in memory because it hasn't shown the form that was hidden, instead it has shown a new version of the form. in effect having 2 instances of the form (one hidden, one visible).

whats the correct procedure here

Thanks in advance

© Stack Overflow or respective owner

Related posts about c#