how to make so that Form2 when you click on Button1 not opened for the second time?

Posted by Saska on Stack Overflow See other posts from Stack Overflow or by Saska
Published on 2010-04-28T05:38:57Z Indexed on 2010/04/28 5:43 UTC
Read the original article Hit count: 174

Filed under:
|

I have the code:

private void Button1_Click (object sender, EventArgs e)
(
    Form2 f2 = new Form2 ();
    f2.Show ();
)

how to make so that Form2 when you click on Button1 not opened for the second time, if it is open?

sorry for bad english

© Stack Overflow or respective owner

Related posts about forms

Related posts about c#