MDI form help

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

    #1

    MDI form help

    Hello

    I am trying to launch a Form3 from a linked lable located on Form2. I
    would like Form2 and Form3 to be children of form1 but I do not know
    how to tell it that the parent is Form1.

    Dim NewMDIChild As New Form3
    NewMDIChild.Mdi Parent = Me (<- How fo I say Form1 instead of
    ME??)
    NewMDIChild.Sho w()


    thanks!

  • Eric Moreau

    #2
    Re: MDI form help

    Because Form1 is the parent of Form2 :
    NewMDIChild.Mdi Parent = Me.MdiParent

    --


    HTH

    Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
    (http://aspnet2.com/mvp.ashx?EricMoreau)
    Conseiller Principal / Senior Consultant
    Concept S2i inc. (www.s2i.com)

    "Paulers" <SuperGh0d@gmai l.com> wrote in message
    news:1123101915 .006415.28220@g 47g2000cwa.goog legroups.com...[color=blue]
    > Hello
    >
    > I am trying to launch a Form3 from a linked lable located on Form2. I
    > would like Form2 and Form3 to be children of form1 but I do not know
    > how to tell it that the parent is Form1.
    >
    > Dim NewMDIChild As New Form3
    > NewMDIChild.Mdi Parent = Me (<- How fo I say Form1 instead of
    > ME??)
    > NewMDIChild.Sho w()
    >
    >
    > thanks!
    >[/color]


    Comment

    Working...