PDA

View Full Version : vb6 - MDI Forms


mastermosley
04-20-06, 19:15
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.

x411man
04-28-06, 11:43
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

childForm.top=MDIForm.top-5
or
childForm.left=MDIForm.left+5

then just set the child form to be whatever size you wish it to be