Results 1 to 4 of 4

Thread: MDIforms

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Up State NY
    Posts
    525

    MDIforms

    I have a form already created, but now want to expand the application.
    I created a MDIParent, but cant seem to find how to change the existing form to an MDI child.

    In VB6 it was as simple as a click in the properties....

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: MDIforms

    by setting the MDIPArent when you show the form...

    Code:
            ' Create a new instance of the child form.
            Dim ChildForm As New System.Windows.Forms.Form
            ' Make it a child of this MDI form before showing it.
            ChildForm.MdiParent = Me
    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Up State NY
    Posts
    525

    Re: MDIforms

    Quote Originally Posted by techgnome View Post
    by setting the MDIPArent when you show the form...
    -tg
    In the form load of the called form?
    I can open the form, but its over the top of the parent form.
    IIRC, a child form opens with in the parent frame.
    Last edited by juliemac; Aug 24th, 2011 at 10:53 AM.

  4. #4
    Addicted Member
    Join Date
    Apr 2008
    Posts
    193

    Re: MDIforms

    Quote Originally Posted by juliemac View Post
    In the form load of the called form?
    As in TG's example, when you create the form.
    Maybe it's the click event of a button used to create a new MDI Child.

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