Results 1 to 4 of 4

Thread: [RESOLVED][2005] MDI Parent & Child Form Problems

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2007
    Posts
    520

    Exclamation [RESOLVED][2005] MDI Parent & Child Form Problems

    i have got am MDI parent form in my application however i seem to be having a few problems setting forms up as MDI children of the parent form so that i can use the centerparent position for the position of each form. i have look in MSDN and its expreamly complicated and i cant get my head round it.

    Can anyone please help me?
    Last edited by frosty16; Mar 26th, 2007 at 06:37 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] MDI Parent & Child Form Problems

    It's actually very simple:
    vb Code:
    1. Dim childForm As New Form
    2.  
    3. childForm.MdiParent = Me
    4. childForm.Show()
    That assumes that you've already set the IsMdiContainer property of the parent form to True, which you would do in the designer.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2007
    Posts
    520

    Re: [2005] MDI Parent & Child Form Problems

    i have tried that and it seems to create a new form
    can i do it with a form that i have created manually

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2007
    Posts
    520

    Re: [2005] MDI Parent & Child Form Problems

    sorted it i jst removed the dim part and jst changed the other to my form name

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