vb6 MDI

Discussion in 'Software' started by mastermosley, Sep 23, 2006.

  1. mastermosley

    mastermosley Sergeant

    I want to make a child form appear in the middle of the mdi form. How do I do this?
     
  2. dedub

    dedub Corporal

    Code:
    Private Sub MDIForm_Load()
    
    mdichild.Left = 400
    mdichild.Top = 400
    
    End Sub
    Your going to have to play with the settings until you get it where you want. This code goes in the MDI parent form load.
     
  3. matt.chugg

    matt.chugg MajorGeek

    Wouldn't something like this centre it : ??

    mdichild.left = (mdiform.width - mdichild.width) / 2
    mdichild.top = (mdiform.height - mdichild.height) / 2
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds