I
info
I am trying to create an MDI Application. I am opening the windows OK
(MDI Children). But I don't think I am doing it correctly.
Basically, I declare the forms on the main form (Parent).
frm1 f1;
frm2 f2;
etc
One for each form.
Then, when I open the form, I just do:
if (f1 != null)
f1 = new frm1;
....
f1.Show();
f1.BringToFront();
However, if I close the form, and try open... it breaks... I have no
code for the close, so it seems to think that even though f1 is
closed... it's not null...
How should I be closing forms? Or, is there a better way to be doing
this?
(MDI Children). But I don't think I am doing it correctly.
Basically, I declare the forms on the main form (Parent).
frm1 f1;
frm2 f2;
etc
One for each form.
Then, when I open the form, I just do:
if (f1 != null)
f1 = new frm1;
....
f1.Show();
f1.BringToFront();
However, if I close the form, and try open... it breaks... I have no
code for the close, so it seems to think that even though f1 is
closed... it's not null...
How should I be closing forms? Or, is there a better way to be doing
this?