Cannot redisplay Windows Form after closing it
<p>When I click a button a form is opened, but if the form is already open, then the app should display the message "Form already open!" and do nothing else. </p>

<p>My problem is, once I close the window [x] I can't open the form again.</p>

<p>Here's the code:</p>

<pre><code>Form2 decript_form = new Form2();
private void button2_Click(object sender, EventArgs e)
{
     if (!decript_form.Visible)
          decript_form.Show();
     else
          MessageBox.Show("Form already open!");
}
</code></pre>