
MDI duplicate child form problem.
How do I detect whether a child form already loaded? So,
if a child form is already loaded, by clicking on the load
form button would bring the loaded child form to focus
instead of opening a duplicate child form.
Here is my load button click event :-
MyForm childForm = new MyForm();
childForm.MdiParent = this.MdiParent;
childForm.Show();
I tried :-
if(childForm != null)
but still the same, if possible, please give some sample
codes.
Thanks for your time.