P
Peter
Hello,
My form with Borderstyle set to none and ControlBox and MaximizeBox and
MinimizeBox set to false stays on location 0;0 (topleft)
but I want the form centered to the screen, so I added in the formload event
:
Rectangle screen = Screen.PrimaryScreen.Bounds;
this.Location = new Point((screen.Width - this.Width) / 2,
(screen.Height - this.Height ) / 2);
no result ! the form stays on topleft location 0;0
Is the a solution for this problem ?
thanks
Peter.
My form with Borderstyle set to none and ControlBox and MaximizeBox and
MinimizeBox set to false stays on location 0;0 (topleft)
but I want the form centered to the screen, so I added in the formload event
:
Rectangle screen = Screen.PrimaryScreen.Bounds;
this.Location = new Point((screen.Width - this.Width) / 2,
(screen.Height - this.Height ) / 2);
no result ! the form stays on topleft location 0;0
Is the a solution for this problem ?
thanks
Peter.