Centering child form in MDI 
Author Message
 Centering child form in MDI

How do I center a child form for different resolutions?  Is there a
particular function to do this?


Wed, 18 Jun 1902 08:00:00 GMT  
 Centering child form in MDI
Add these two lines of code to the Form's load event:

    Left = (MDIForm1.ScaleWidth - Width) / 2
    Top = (MDIForm1.ScaleHeight - Height) / 2

Jason Bouzane


Quote:
> How do I center a child form for different resolutions?  Is there a
> particular function to do this?



Wed, 18 Jun 1902 08:00:00 GMT  
 Centering child form in MDI
In VB6, there is a property of the form that does this. I think it is called
StartUpPosition. No code needed.

Quote:
> How do I center a child form for different resolutions?  Is there a
> particular function to do this?



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Centering child form in mdi window

2. Center an MDI Child in MDI form

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

4. MDI Child Form Centering

5. Centering MDI Child Form

6. center a child form in a MDI

7. Q: Centering an MDI Child Form

8. Center MDI Child Form

9. Centering a child form in an MDI Window

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

11. Newbie Question - Center MDI child form

12. How to center MDI child form

 

 
Powered by phpBB® Forum Software