Results 1 to 4 of 4

Thread: How to make MDI childs

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    2

    How to make MDI childs

    Hi,
    I'm new to VB.NET and want to make childs in a MDI form but I don't find any property like MDIChild or something to set true (like I use to do in VB6) How can I make this child forms?
    Thanx for any help.

  2. #2
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Not sure if this is the only/best way, but it works...

    For your parent form, set IsMdiContainer to True. Then show a form that you want to be the child - something like

    VB Code:
    1. Dim frm As New NewCall ' NewCall is a System.Windows.Forms.Form
    2. frm.MdiParent = Me
    3. frm.WindowState = FormWindowState.Maximized
    4. frm.Show()

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    When showing the form set the MDIParent property to the MDIContainer form. I don't remember if you can set that property at designtime or not, sorry.

    -Yeah what he said!

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    2
    Thankx a lot guys that works fine!

    Originally posted by Edneeis
    I don't remember if you can set that property at designtime or not, sorry.
    I don't think so. I've went true all the form properties 5 times and I didn't found a right property for that action.

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