ClientHeight Property | ||||||
Applies to: Window object See also: ClientWidth property, WindowHeight property, WindowWidth property read-only Returns the height (in pixels) of a window's client area. Syntax: object.ClientHeight The ClientHeight syntax has these parts:
Remarks: For top-level windows, and Mdi Child windows, the client area is the main workspace of a window excluding the title bar and border. For most other windows, the client area is the whole window. The ClientHeight property cannot be changed directly. To change the size of the client area, change the size of the whole window using WindowWidth and WindowHeight. To make the client area a specific height, subtract the height of the client area from the height of the window to get the total height of the non-client area (height of the title bar and menu plus 2 times the border width). Then set the height of the window to that value plus the desired client height.
|