Results 1 to 8 of 8

Thread: [RESOLVED] Displaying MDIChild form within an MDIChild form

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    28

    Resolved [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.

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Displaying MDIChild form within an MDIChild form

    all depends on what you mean by 'act properly'

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    28

    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.

  4. #4
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    28

    Re: [RESOLVED] Displaying MDIChild form within an MDIChild form

    Okay, thanks.

  6. #6
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    28

    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/>

  8. #8
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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
  •  



Click Here to Expand Forum to Full Width