MDI Child Form Centering 
Author Message
 MDI Child Form Centering

Hi,

How do I center a MDI Child Form within its Parents Form?

Many Thanks

Gary
------------------------



Thu, 02 Dec 2004 23:42:20 GMT  
 MDI Child Form Centering

Quote:

>Hi,

>How do I center a MDI Child Form within its Parents Form?

>Many Thanks

>Gary
>------------------------


Does it not work when you set the child form's top and left
properties?

Otis M.
http://www.arltex.com
http://www.otismukinfus.com



Fri, 03 Dec 2004 00:51:16 GMT  
 MDI Child Form Centering
Me.Left = CInt((Me.ParentForm.Width - Me.Width) / 2)

Me.Top = CInt((Me.ParentForm.Height - Me.Height) / 2)


Quote:
> Hi,

> How do I center a MDI Child Form within its Parents Form?

> Many Thanks

> Gary
> ------------------------




Fri, 03 Dec 2004 03:15:32 GMT  
 MDI Child Form Centering
It would seem logical that the following would work:

Form1.StartPosition = FormStartPosition.CenterParent

But that places the chile form in the upper left hand
corner within the MDI form...

The following line, however, centers the child form in the
MDI parent:

Form1.StartPosition = FormStartPosition.CenterScreen
(Or set the StartPosition to CenterScreen in the
properties window.)

Quote:
>-----Original Message-----
>Hi,

>How do I center a MDI Child Form within its Parents Form?

>Many Thanks

>Gary
>------------------------

>.



Fri, 03 Dec 2004 07:37:35 GMT  
 
 [ 4 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. Centering MDI Child Form

4. center a child form in a MDI

5. Centering child form in MDI

6. Q: Centering an MDI Child Form

7. Center MDI Child Form

8. Centering a child form in an MDI Window

9. Centering child form in 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