Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Open MDI Child form from already MDI child form

Open MDI Child form from already MDI child form

Scheduled Pinned Locked Moved C#
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Inpreet Singh
    wrote on last edited by
    #1

    Hello, I need to build an MDI application. After opening forms as MDI Child if I need to open further form from those MDIChild form it don't follow MDI Application. So how can i make a form as MDI child of the form which is already an MDI child. Thanks for ur support Inpreet Singh

    H D S 3 Replies Last reply
    0
    • I Inpreet Singh

      Hello, I need to build an MDI application. After opening forms as MDI Child if I need to open further form from those MDIChild form it don't follow MDI Application. So how can i make a form as MDI child of the form which is already an MDI child. Thanks for ur support Inpreet Singh

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      The .NET Framework - and the underlying Windows Management APIs - do not support this. You should rethink your application design. You should also read the Windows User Interface Guidelines[^]. Such a design would be confusing for more users anyway. One common approach would be to bind controls to a hierarchical list (like a TreeView), similar to Mozilla preferences. There are several articles here on CodeProject about such a UI as well. If you require this type of UI, then like many other applications with custom UIs you must design all the supporting APIs yourself.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      • I Inpreet Singh

        Hello, I need to build an MDI application. After opening forms as MDI Child if I need to open further form from those MDIChild form it don't follow MDI Application. So how can i make a form as MDI child of the form which is already an MDI child. Thanks for ur support Inpreet Singh

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You can't. A form cannot be an MDI Parent and Child at the same time. In other words, you have an MDI Parent that has children. None of those children can be an MDI Parent to another child form. You can't do this:

        MDI Parent Form
        |
        +--->MDI Child Form
        |
        +--->MDI Child Form
        |
        +--->MDI Child/Parent Form <---Illegal!
        |
        +--->MDI Child Form
        |
        +--->MDI Child Form

        RageInTheMachine9532

        1 Reply Last reply
        0
        • I Inpreet Singh

          Hello, I need to build an MDI application. After opening forms as MDI Child if I need to open further form from those MDIChild form it don't follow MDI Application. So how can i make a form as MDI child of the form which is already an MDI child. Thanks for ur support Inpreet Singh

          S Offline
          S Offline
          surgeproof
          wrote on last edited by
          #4

          I don't know a lot in this area, but couldn't you create your main parent, child and also another parent that is a copy of that child and make the child call the 2nd level parent?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups