vb6 - MDI Forms

Discussion in 'Software' started by mastermosley, Apr 20, 2006.

  1. mastermosley

    mastermosley Sergeant

    I just want to no if i can make a child form appear in a specified spot in the mdi form. Like I want it to appear in the top right hand corner of the mdi form. Is this possible? If so an example code would be appreciated.
     
  2. x411man

    x411man Private E-2

    You can make a child form appear where you want it to in a MDI form. You have to have the .top and the .left methods of the child form be relitive to the MDIform. In either the form load or form activate procedure of the child form, code the left and top methods. for example

    Code:
    childForm.top=MDIForm.top-5
    or
    Code:
    childForm.left=MDIForm.left+5
    then just set the child form to be whatever size you wish it to be
     

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