So if it\'s toolwindow or a minimizable form, I want to be able to get its height programmatically.
Is this possible? If so how?
In my case, I had to change the height of the form so that it was just below one of the controls, I noticed that
int titleHeight = this.Height - screenRectangle.Height;
returns 39 while the accepted answer:
int titleHeight = screenRectangle.Top - this.Top;
returns 31
maybe because of form's bottom border.