Results 1 to 2 of 2

Thread: MDI Projects

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2001
    Posts
    52

    Question MDI Projects

    I have got an MDI Project which automatically opens a child form. From that child form, I then want to open another child form. How is this done. This is what I am doing to open the first child form. Under the MDI form:

    VB Code:
    1. Dim frm As New frmStep1
    2.  
    3. frm.MdiParent = Me
    4.  
    5. frm.Show()

    This however does not work from a child form as it is not an MDI form. Any ideas?

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Yes, if you want to open a form from an child form, and make the new form a child of the parent, you do this:

    Code:
    Dim frm As New frmStep1
    
    frm.MdiParent = Me.MdiParent
    
    frm.Show()

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