HI!
I have a little problem... I have MDI project: one Parent and two different Child forms. And I want that user can create only one copy of each Child form at time. I have a verification before creating (simplified version):
if(one_of_child_form == null) this_form_i_create();
And code for closing Child forms (in Parent form):
one_of_child_form.Close();this_form = null;
So far all works OK, but if I close any Child form with it controls (I've button "Close", or by Click on standart cross), Parent form don't understand it. It think that I already have this Child form, because this Child form is not null. How can I tell from Child form to Parent form that "I had a good time with you, but I'm closing now, thatswhy I = null"???Or is there other way how it make or other return value?
Thanks!