I have a problem when maximizing the form and I can't find a solution in either the resources you linked, or google.
What I've done is:
bool clientAreaOverride = true;
borderWidth = (this.Width - this.ClientSize.Width) /2;
titlebarHeight = this.Height - this.ClientSize.Height - 2 * borderWidth;
private void AdjustClientRect(ref RECT rcClient)