This documentation is archived and is not being maintained.

SystemInformation.BorderSize Property

Gets the width and height, in pixels, of a window border.

[Visual Basic]
Public Shared ReadOnly Property BorderSize As Size
public static Size BorderSize {get;}
public: __property static Size get_BorderSize();
public static function get BorderSize() : Size;

Property Value

A Size that specifies the width and height of a window border in pixels.


The BorderSize property is the non-three-dimensional counterpart of the Border3DSize property. Use this property when creating a control that has a border to determine the proper sizing of the border.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SystemInformation Class | SystemInformation Members | System.Windows.Forms Namespace | SystemInformation | Border3DSize | Size