I have this class that inherits from System.Windows.Forms.Form. In the constructor it says:
Code:
this.WindowState = FormWindowState.Maximized;
other than thisi dont set any information about the size of the window. But when i request "this.Height" and "this.Width" both return 300 (for some reason). So i add the following lines:
Code:
this.Height = ClientRectangle.Height;
this.Width = ClientRectangle.Width;
now "this.Height" returns 266, and "this.Height" returns 292. Where did these numbers come from?
I'm trying to place various items on the screen after maximizing without setting the points explicitly, but i cant seem to get a hold of the windows actual size after maximizing it, how should i go about this?