Center Child Window in SDI
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi to all... Does anybody knows how to center the child window (Main Form View) in SDI application??? I've tried tried and tried, but still cannot get the child form to be centralized. Please help or give a little advice / pointers how to get round this. Thanks. Rdgs, Ben :(
-
Hi to all... Does anybody knows how to center the child window (Main Form View) in SDI application??? I've tried tried and tried, but still cannot get the child form to be centralized. Please help or give a little advice / pointers how to get round this. Thanks. Rdgs, Ben :(
You can always position it manually;
child.Location = new Point((ClientArea.Width - child.Bounds.Width) / 2, (ClientArea.Height - child.Bounds.Height) / 2);
James Simplicity Rules!