Results 1 to 2 of 2

Thread: Open Child form from another Child form

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    6

    Open Child form from another Child form

    When I am trying to open a child form from another child form, it is opening outside the MDI form. (A new instance of the child form is created)

    Is there any way to open the called child form in the same MDI form where the calling form resides?

    This is the code written in child2 to open the child1:

    Dim Child1 As New frmChild1
    Dim mdi1 as new frmMDI
    child1.MDIParent = mdi1
    child1.Show()

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    VB Code:
    1. child1.MdiParent = me.MdiParent

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