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. A MDI in a MDI

A MDI in a MDI

Scheduled Pinned Locked Moved C#
questionhelp
6 Posts 3 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.
  • S Offline
    S Offline
    sixefftee
    wrote on last edited by
    #1

    i've have been asked to create a gui that is a mdi in a mdi. by this i mean that the main form at a mdiparent and the host mdichildern who in turn act as a mdiparents and host their own mdi children. i've this and received a clear error say a mdiparent can not be a mdichild as well. my question is does anybody know a way around this or an alternative to a "mdi in a mdi"? any reply is appreciated.

    A S J 3 Replies Last reply
    0
    • S sixefftee

      i've have been asked to create a gui that is a mdi in a mdi. by this i mean that the main form at a mdiparent and the host mdichildern who in turn act as a mdiparents and host their own mdi children. i've this and received a clear error say a mdiparent can not be a mdichild as well. my question is does anybody know a way around this or an alternative to a "mdi in a mdi"? any reply is appreciated.

      A Offline
      A Offline
      ASGill
      wrote on last edited by
      #2

      i've tried this too...but to no avail it wasnt possible..anyone has got any idea abt this. CODER

      1 Reply Last reply
      0
      • S sixefftee

        i've have been asked to create a gui that is a mdi in a mdi. by this i mean that the main form at a mdiparent and the host mdichildern who in turn act as a mdiparents and host their own mdi children. i've this and received a clear error say a mdiparent can not be a mdichild as well. my question is does anybody know a way around this or an alternative to a "mdi in a mdi"? any reply is appreciated.

        S Offline
        S Offline
        sixefftee
        wrote on last edited by
        #3

        also i don't care if there's some tool i have to buy to this. at this point i'll take anything.

        1 Reply Last reply
        0
        • S sixefftee

          i've have been asked to create a gui that is a mdi in a mdi. by this i mean that the main form at a mdiparent and the host mdichildern who in turn act as a mdiparents and host their own mdi children. i've this and received a clear error say a mdiparent can not be a mdichild as well. my question is does anybody know a way around this or an alternative to a "mdi in a mdi"? any reply is appreciated.

          J Offline
          J Offline
          John Fisher
          wrote on last edited by
          #4

          At the very, very worst, you could completely avoid any built-in MDI functionality and write it yourself. Besides some interesting user-interface tweaks, MDI is basically a set of forms inside another set of forms, which can be done rather easily. John
          "You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

          S 1 Reply Last reply
          0
          • J John Fisher

            At the very, very worst, you could completely avoid any built-in MDI functionality and write it yourself. Besides some interesting user-interface tweaks, MDI is basically a set of forms inside another set of forms, which can be done rather easily. John
            "You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

            S Offline
            S Offline
            sixefftee
            wrote on last edited by
            #5

            thats fine as it seems to be my only option but, can point in the direction to find out how to that because i'm guessing it would invole some win32 calls?

            J 1 Reply Last reply
            0
            • S sixefftee

              thats fine as it seems to be my only option but, can point in the direction to find out how to that because i'm guessing it would invole some win32 calls?

              J Offline
              J Offline
              John Fisher
              wrote on last edited by
              #6

              The Win32 calls would only come in if you need to have the main form, its sub-form, and then the 3rd level sub-form all showing a title bar that indicates it is active. I'm not really if there is anything else to the base MDI document behavior. To add a form as a child of another form, make a constructor to the (sub)form class which takes the parent as a parameter. Then, in that constructor, set TopLevel to false, and Parent to the parent form. It would look like this:

              public MyMdiForm(System.Windows.Forms.Form parent)
              {
              InitializeComponents();

              this.TopLevel = false;
              this.Parent = parent;
              

              }

              To handle the look that needs multiple forms to display as active, check this[^]out. John
              "You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

              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