G
Guest
In my forms constructor I have the following:
this.WindowState = FormWindowState.Maximized;
I then try to size some controls based on the size of the maximized form's
client area:
SomeControl.Height = (this.ClientSize).Height;
But this never returns the proper value i.e. (this.ClientSize).Height is
always too small (around 230 pixels). What is going wrong?
this.WindowState = FormWindowState.Maximized;
I then try to size some controls based on the size of the maximized form's
client area:
SomeControl.Height = (this.ClientSize).Height;
But this never returns the proper value i.e. (this.ClientSize).Height is
always too small (around 230 pixels). What is going wrong?