MDI Problem

A

Asfar

I have C# MDI application.
In the Load event of the main form I display another widows form, form1 and
set the MdiParent to the main form.
I have a button on the child form which I click and open form2 and close
form1.

Now when I close form2 I want to come back to from1. Can some please tell me
how this be done in a MDI application.

Thanks,
-Asfar
 
L

Leon Friesema

I have C# MDI application.
In the Load event of the main form I display another widows form, form1 and
set the MdiParent to the main form.
I have a button on the child form which I click and open form2 and close
form1.

Now when I close form2 I want to come back to from1. Can some please tell me
how this be done in a MDI application.

Thanks,
-Asfar
Asfar,

do you show form2 only or do you dispose of form1?

Leon
 

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