Results 1 to 2 of 2

Thread: MDI child question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2002
    Location
    South West UK
    Posts
    245

    MDI child question

    Can you center an mdichild form ? if so how because i can't get the form to center.
    A lowly programmer.

    http://www.sentinalgroup.com

  2. #2
    Hyperactive Member phrozeman's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Posts
    442
    VB Code:
    1. Form1.Left = Me.ScaleWidth / 2 + Form1.Width / 2
    2. Form1.Top = Me.ScaleHeight / 2 + Form1.Height / 2
    3. Form1.Show

    This will center the form, normally u can use the CenterOwner option, but that doesent work with MDi ;/
    There's a certain mystique when I speak, that you notice that it's sorta unique, cause you know it's me

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