It seems that the ClientRectangle for a GroupBox is the size of the entire GroupBox control, and not the "inner" rectangle that I want.
With the attached code, all I see is red, and no yellow.
With the attached code, I would like to see yellow around the outside (where the border and heading text is displayed), and red only in the docking area (where the child controls get docked).





by: alefzeroPosted on 2009-09-28 at 01:36:31ID: 25437559
As with all Windows Forms controls, the "inner" area is the so called client area. See http://msdn.microsoft.com/ en-us/libr ary/ system .windows.f orms.contr ol.clientr ectangle.a spx or http://msdn.microsoft.com/ en-us/libr ary/ system .windows.f orms.contr ol.clients ize.aspx . And as always, the client area axes begin at the top left corner of the client area (0, 0 - width, height).