Thi should be very simple but I'm having problems with it, i want to
display a non modal static second form. When I say 'static' I mean
contents should not be lost when hidden.
So i have my Form2 class form declared in Form1 like:
public static Form2 form2 = null;
And then I have:
private void button1_Click(object sender, System.EventArgs e)
{
if (form2 == null) form2 = new Form2();
form2.Show();
}
Well, frist time I press button form is shown, then I press the the
close button (the X in the corner) and when I try to show it again it
says it has been disposed.
Same code with ShowDialog works fine, but somehow when I close the
second form it gets disposed if I use Show(). I cannot use ShowDialog
cause I want both main and second form to be avaliable at the same time.