Newbie Question - Center MDI child form 
Author Message
 Newbie Question - Center MDI child form

Hi All,
    what's the easiest way to center (middle of the mdi frame etc)  an
MDI child form when it's loaded ?

TIA

Bill



Sat, 07 Dec 2002 03:00:00 GMT  
 Newbie Question - Center MDI child form

you can define a function like this and call from  Child Form_Load event
CenterChild (MDIForm1,Form1)

Public Sub CenterChild(MDI, Child )
       Child.Left = (MDI.ScaleWidth - Child.Width) / 2
       Child.Top = (MDI.ScaleHeight - Child.Height) / 2
End Sub



Sat, 07 Dec 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Center an MDI Child in MDI form

2. Q: Form activate Fires On Non Child MDI Forms But Only Once On Child Mdi Forms

3. MDI Child Form Centering

4. Centering MDI Child Form

5. center a child form in a MDI

6. Centering child form in MDI

7. Q: Centering an MDI Child Form

8. Center MDI Child Form

9. Centering a child form in an MDI Window

10. Centering child form in mdi window

11. How to center the MDI Child form when it is loaded

12. How to center MDI child form

 

 
Powered by phpBB® Forum Software