MDI Child form Question

A

Alij

Hi,

I have an MDI form with one child form (called firstform), which has a
button. The button creates a new instance of a form(called secondform) with
a button on it also, and this new form is also set to be an MDI child.

When the button on the first form is clicked, the second form is initialized
and called with secondform.show() method. At the same time, I want to hide
the firstform by using firstform.hide(). All this works fine. The problem I
am having is: When the second form button is clicked, I want to show back
the firstform. How do I get a handle of the instance of the first form so I
can use this?

Looking forward to any help/pointers.

Thanks!
Alij
 
Z

zacks

Hi,

I have an MDI form with one child form (called firstform), which has a
button. The button creates a new instance of a form(called secondform) with
a button on it also, and this new form is also set to be an MDI child.

When the button on the first form is clicked, the second form is initialized
and called with secondform.show() method. At the same time, I want to hide
the firstform by using firstform.hide(). All this works fine. The problem I
am having is: When the second form button is clicked, I want to show back
the firstform. How do I get a handle of the instance of the first form so I
can use this?

Looking forward to any help/pointers.

Thanks!
Alij

Each MDI child form has a Parent property which is the child form's
parent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top