A problem to opem MDI child form from another MDI child form

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

    A problem to opem MDI child form from another MDI child form

    Dear Sirs,

    I made a MDI Parent form and two MDI child form. I can open MDI child form
    from MDI parent form with;
    Dim UserChangePassw ord_Form As New UserChangePassw ord

    'Set the Parent Form of the Child window.

    UserChangePassw ord_Form.MdiPar ent = Me

    'Display the new form.

    UserChangePassw ord_Form.Show()

    But when I try to open 2nd MDI child form from 1th MDI child form, form will
    not open with above code. When I do not use
    UserChangePassw ord_Form.MdiPar ent = Me


    2nd form opens but out of MDI Parent form. It is open as a another form on
    task bar.

    How can I open MDI child form from another MDI child form whish will be
    located in the MDI parent form.

    Best Regards



  • Herfried K. Wagner [MVP]

    #2
    Re: A problem to opem MDI child form from another MDI child form

    * "QT" <web_tur@yahoo. com> scripsit:[color=blue]
    > I made a MDI Parent form and two MDI child form. I can open MDI child form
    > from MDI parent form with;
    > Dim UserChangePassw ord_Form As New UserChangePassw ord
    >
    > 'Set the Parent Form of the Child window.
    >
    > UserChangePassw ord_Form.MdiPar ent = Me
    >
    > 'Display the new form.
    >
    > UserChangePassw ord_Form.Show()
    >
    > But when I try to open 2nd MDI child form from 1th MDI child form, form will
    > not open with above code. When I do not use
    > UserChangePassw ord_Form.MdiPar ent = Me[/color]

    \\\
    <...>.MdiPare nt = Me.MdiParent
    ///

    --
    Herfried K. Wagner [MVP]
    <http://www.mvps.org/dotnet>

    Comment

    • QT

      #3
      Re: A problem to opem MDI child form from another MDI child form

      thank you very much; how I could not think of it!

      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
      news:OYSd#P5yDH A.2000@TK2MSFTN GP11.phx.gbl...[color=blue]
      > * "QT" <web_tur@yahoo. com> scripsit:[color=green]
      > > I made a MDI Parent form and two MDI child form. I can open MDI child[/color][/color]
      form[color=blue][color=green]
      > > from MDI parent form with;
      > > Dim UserChangePassw ord_Form As New UserChangePassw ord
      > >
      > > 'Set the Parent Form of the Child window.
      > >
      > > UserChangePassw ord_Form.MdiPar ent = Me
      > >
      > > 'Display the new form.
      > >
      > > UserChangePassw ord_Form.Show()
      > >
      > > But when I try to open 2nd MDI child form from 1th MDI child form, form[/color][/color]
      will[color=blue][color=green]
      > > not open with above code. When I do not use
      > > UserChangePassw ord_Form.MdiPar ent = Me[/color]
      >
      > \\\
      > <...>.MdiPare nt = Me.MdiParent
      > ///
      >
      > --
      > Herfried K. Wagner [MVP]
      > <http://www.mvps.org/dotnet>[/color]


      Comment

      Working...