Results 1 to 4 of 4

Thread: [RESOLVED] Set Window location of MDI Child in MDI Form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2007
    Location
    Melbourne, Australia
    Posts
    362

    Resolved [RESOLVED] Set Window location of MDI Child in MDI Form

    How can i set the default loading location of an MDIChild form inside an MDI form? i would like my MDIChild forms to default to the center of the MDI but i cant achieve this, it seems i can only get it to load in the top left hand corner. any ideas?

    Cheers

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    Re: Set Window location of MDI Child in MDI Form

    Never worked with MDI forms, however don't they have a .Top and .Left property like all other controls. If the MDIChild allways show at the top-left corner both properties should have a value of 0. When you create the Child's set these properties to your desired value, that should do it.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2007
    Location
    Melbourne, Australia
    Posts
    362

    Re: Set Window location of MDI Child in MDI Form

    no worries ill give it a try.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2007
    Location
    Melbourne, Australia
    Posts
    362

    Re: Set Window location of MDI Child in MDI Form

    yup it works if you set the parameters in Form_Load() code but not in the properties box.

    cheers this is resolved

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