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. Visual Basic
  4. Creating an MDI child

Creating an MDI child

Scheduled Pinned Locked Moved Visual Basic
dockerquestion
4 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.
  • V Offline
    V Offline
    Verolix
    wrote on last edited by
    #1

    I have a form named frmMain, it's an MDI container (MDI parent). How do i create an MDI child for that form. Child's name should be frmText. Zero

    N D 2 Replies Last reply
    0
    • V Verolix

      I have a form named frmMain, it's an MDI container (MDI parent). How do i create an MDI child for that form. Child's name should be frmText. Zero

      N Offline
      N Offline
      Nick Seng
      wrote on last edited by
      #2

      Depends on whether you are using vb6 or .Net In vb6, Set the MDIChild property of your child form to true during design time. For VB.Net, you have to explicitly assign the child to the MDI Parent during runtime, just before the child is shown

      Dim frm as frmText
      frm.MDIParent = frmMain
      frm.Show()


      "if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.

      V 1 Reply Last reply
      0
      • N Nick Seng

        Depends on whether you are using vb6 or .Net In vb6, Set the MDIChild property of your child form to true during design time. For VB.Net, you have to explicitly assign the child to the MDI Parent during runtime, just before the child is shown

        Dim frm as frmText
        frm.MDIParent = frmMain
        frm.Show()


        "if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.

        V Offline
        V Offline
        Verolix
        wrote on last edited by
        #3

        Thanks.

        1 Reply Last reply
        0
        • V Verolix

          I have a form named frmMain, it's an MDI container (MDI parent). How do i create an MDI child for that form. Child's name should be frmText. Zero

          D Offline
          D Offline
          Desi Bravo
          wrote on last edited by
          #4

          Creating the child form as you created the container. Just select the MDI Parent frmMain add another windows form and call it frmChild, or whatever you like to call it. That's it. Then do you coding from there. bravo659

          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