Click to See Complete Forum and Search --> : A question about MDI application


paradise
April 19th, 2003, 05:24 AM
I have a problem in mdi applications
The problem is:

This mdi child window appears separate from the MDI application,
rather than as a child form within it.

Details:

For example when I open the mdi application and press alt+tab to go to another application and press alt+tab again to go back to my mdi application ,
I find in the switching panel that contains all the opened applications , I find two icons for my mdi application

One icon of them (I made it) is for the parent mdi form , and when I click this icon , the mdi form appears but empty without any opened mdi child forms

The other icon (I didn’t made it and it has the shape of the default windows icon) when I press it, all the opened mdi child windows appear without the mdi parent window

All what I want to do is:
Only one icon for the mdi application
Both of mdi parent window and mdi child windows appear together not separately .

Thanks in advance

pareshgh
April 21st, 2003, 03:58 PM
check the application's OnFocus event ,
try implementing it and you can navigate that code.


Paresh

xucaen
July 24th, 2003, 02:50 PM
try something like this:


...

Form f2 = new Form();
f2.MdiParent = this;
f2.show();
...



jim