MDI child problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • creamy

    #1

    MDI child problem

    Hello, everyone. I'm kinda new to VB.NET and i haven't used an MDI
    container before. I create a form and want to call it on load of the
    MDI container. i do this:

    dim childObj as new CreatedForm()
    childObj.MdiPar ent = Me
    childObj.show()

    it doesn't show the created form at all. Please i need help 'cos it is
    baffling how it doesn't display as a child.
    Thanks for your anticipated response.

  • Charlie Brown

    #2
    Re: MDI child problem

    On May 7, 10:57 am, creamy <blackdevil_he. ..@yahoo.comwro te:
    Hello, everyone. I'm kinda new to VB.NET and i haven't used an MDI
    container before. I create a form and want to call it on load of the
    MDI container. i do this:
    >
    dim childObj as new CreatedForm()
    childObj.MdiPar ent = Me
    childObj.show()
    >
    it doesn't show the created form at all. Please i need help 'cos it is
    baffling how it doesn't display as a child.
    Thanks for your anticipated response.
    Make sure you set the parent forms IsMDIContainer property to TRUE.
    You may also want to take the object ref out of the load method so you
    can access it later.

    Dim childForm as CreatedForm()

    Private Sub Main_Load(ByVal sender As Object, ByVal e As
    System.EventArg s) Handles MyBase.Load
    childForm = new CreatedForm
    childForm.MdiPa rent = Me
    childForm.Show( )
    End Sub


    Comment

    Working...