Version

GetPreferredControlSize Method

Calculates the preferred control size including content padding, header size, and border width.
Syntax
'Declaration
 
Public Function GetPreferredControlSize( _
   ByVal contentSize As Size _
) As Size
public Size GetPreferredControlSize( 
   Size contentSize
)

Parameters

contentSize
The size necessary to fit all the controls in the group box.

Return Value

The size required for the control to display all of its contents.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also