-
May 8th, 2006, 01:13 PM
#1
Thread Starter
Junior Member
[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.
-
May 8th, 2006, 01:16 PM
#2
Re: Displaying MDIChild form within an MDIChild form
all depends on what you mean by 'act properly'
-
May 8th, 2006, 01:35 PM
#3
Thread Starter
Junior Member
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.
-
May 8th, 2006, 01:43 PM
#4
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.
-
May 8th, 2006, 01:44 PM
#5
Thread Starter
Junior Member
Re: [RESOLVED] Displaying MDIChild form within an MDIChild form
-
May 8th, 2006, 01:47 PM
#6
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
-
May 8th, 2006, 03:38 PM
#7
Thread Starter
Junior Member
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/>
-
May 8th, 2006, 03:46 PM
#8
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|