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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. To build MDI application

To build MDI application

Scheduled Pinned Locked Moved C#
helptutorial
5 Posts 3 Posters 1 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

    Hi, I want to build MDI Application. I got success in 1st level of MDIChild forms now the problem is that if these MDI child form open new forms those forms cannot be included as MDI child becoz those are child forms of the MDI child form. So could u plz tell me how to proceed in this, to build an application in which all forms as child forms of the main MDI form. or is there any other wayout. Thanks for ur support. Inpreet Singh

    D H 2 Replies Last reply
    0
    • I Inpreet Singh

      Hi, I want to build MDI Application. I got success in 1st level of MDIChild forms now the problem is that if these MDI child form open new forms those forms cannot be included as MDI child becoz those are child forms of the MDI child form. So could u plz tell me how to proceed in this, to build an application in which all forms as child forms of the main MDI form. or is there any other wayout. Thanks for ur support. Inpreet Singh

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

      If you want a child form to launch another child form, try this in your child form:

      Dim newChild As New ChildForm2

      newChild.MdiParent = Me.MdiParent

      I haven't tested this method so I couldn't tell you if it works or not. Also, if you have any tracking code in your MDI Parent for tracking various aspects of your children, that code isn't going to work anymore. RageInTheMachine9532

      I 1 Reply Last reply
      0
      • D Dave Kreskowiak

        If you want a child form to launch another child form, try this in your child form:

        Dim newChild As New ChildForm2

        newChild.MdiParent = Me.MdiParent

        I haven't tested this method so I couldn't tell you if it works or not. Also, if you have any tracking code in your MDI Parent for tracking various aspects of your children, that code isn't going to work anymore. RageInTheMachine9532

        I Offline
        I Offline
        Inpreet Singh
        wrote on last edited by
        #3

        Hello Sir, As MDIChild cannot be again MDI Parent that why i cannot run this code. There must be some other wayout to include 2nd level or further level forms into as main MDI Child form. Inpreet Singh

        D 1 Reply Last reply
        0
        • I Inpreet Singh

          Hi, I want to build MDI Application. I got success in 1st level of MDIChild forms now the problem is that if these MDI child form open new forms those forms cannot be included as MDI child becoz those are child forms of the MDI child form. So could u plz tell me how to proceed in this, to build an application in which all forms as child forms of the main MDI form. or is there any other wayout. Thanks for ur support. Inpreet Singh

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

          This is the THIRD time you've asked this, and with the first two times several people told you that the .NET Framework - and the Windows Management APIs that they encapsulate - do not support this. You'll have to create your own window management APIs in .NET in order to do this, so please quit asking how to use the MDI support in .NET because it will not work.

          Microsoft MVP, Visual C# My Articles

          1 Reply Last reply
          0
          • I Inpreet Singh

            Hello Sir, As MDIChild cannot be again MDI Parent that why i cannot run this code. There must be some other wayout to include 2nd level or further level forms into as main MDI Child form. Inpreet Singh

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

            How many times do we have to tell you that WINDOWS DOES NOT SUPPORT THIS! Rethink your design because it's not going to happen! Unless you want to write your own Window Manager and Window Classes! Good Luck! RageInTheMachine9532

            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