[RESOLVED] Displaying MDIChild form within an MDIChild form
Hello,
I have an MDI application; the parent form calls a "base" MDIChild form, which, for sake of argument, has graphical imagery that looks like the picture of a television set.
Within the "screen" area of my television, I want to show various "sub-MDIChild" forms, based on controls clicked in the base MDIChild. Is there a way to display forms within a frame on the base MDIChild, and have all the "sub-MDIChildren" act properly.
Thanks for your help.
Re: Displaying MDIChild form within an MDIChild form
all depends on what you mean by 'act properly'
Re: Displaying MDIChild form within an MDIChild form
I mean it acts like an MDIChild of the MDIChild...i.e., stays witihin the form, resizes properly when minimized and restored, etc.
Re: Displaying MDIChild form within an MDIChild form
what you can do is place a normal form within a another window e.g. a MDIChild or PictureBox etc. using the SetParent API.
Unfortunately it won't resize when its new parent is resized - even if you change the windowstyle constants then the messages still don't get through for some reason. I've never seen a non-fudge solution for it.
Re: [RESOLVED] Displaying MDIChild form within an MDIChild form
Re: [RESOLVED] Displaying MDIChild form within an MDIChild form
I wouldn't mark this thread resolved, someone may have a solution, and I for one would be very keen to see it :thumb:
Re: [RESOLVED] Displaying MDIChild form within an MDIChild form
Actually, I resolved it by using Joacim Andersson's solution at:
http://www.vbforums.com/showthread.php?s=&threadid=132141<br%20/>
Re: [RESOLVED] Displaying MDIChild form within an MDIChild form
oh i see, your just going to position the other MDIChilds relative to the base one, giving the illusion of having them within the window rather actually putting them there.