471,570 Members | 927 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

MDI problems

Hi guys

I have an MDI application that has multiple forms (as expected), but when
trying to centre the child forms in the parent it doesn't work. I have set
the 'Start Position' property of the child form to 'Center Parent', but it
doesn't do anything. I have also set the child forms 'MdiParent' property
to the parent form in the constructor. The child forms are contained by the
parent but not centered on load.

any ideas???
Steven
Feb 6 '06 #1
2 1798
In the childform_load() try to move itself to center.

Steve wrote:
Hi guys

I have an MDI application that has multiple forms (as expected), but when
trying to centre the child forms in the parent it doesn't work. I have set
the 'Start Position' property of the child form to 'Center Parent', but it
doesn't do anything. I have also set the child forms 'MdiParent' property
to the parent form in the constructor. The child forms are contained by the
parent but not centered on load.

any ideas???
Steven

Feb 7 '06 #2
Hi Steven,

There is a note concerning Multiple-Document Interface (MDI) Applications in
the Windows Forms Programming documentation:

"There are some behavior differences between MDI forms and single-document
interface (SDI) windows in Windows Forms. The Opacity property does not
affect the appearance of MDI child forms. Additionally, the CenterToParent
method does not affect the behavior of MDI child forms".

Peter
"Steve" <sg*******@clear.net.nz> schrieb im Newsbeitrag
news:43******@clear.net.nz...
Hi guys

I have an MDI application that has multiple forms (as expected), but when
trying to centre the child forms in the parent it doesn't work. I have
set the 'Start Position' property of the child form to 'Center Parent',
but it doesn't do anything. I have also set the child forms 'MdiParent'
property to the parent form in the constructor. The child forms are
contained by the parent but not centered on load.

any ideas???
Steven

Feb 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jerome Lefebvre | last post: by
14 posts views Thread by Jim Hubbard | last post: by
5 posts views Thread by Corky | last post: by
2 posts views Thread by Ellen Graves | last post: by
reply views Thread by Sergistm | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.