ClientLeft

Returns the coordinates of the internal area (display area) of the TabStrip control. Read-only at run time; not available at design time.

Syntax

object.ClientHeight

object.ClientWidth

object.ClientLeft

object.ClientTop

Remarks

At run time, the client-coordinate properties – ClientLeft, ClientTop, ClientHeight, and ClientWidth—automatically store the coordinates of the TabStrip control's internal area, which is shared by all Tab objects in the control. So that the controls associated with a specific Tab appear when that Tab object is selected, place the Tab object's controls inside a container, create several Frame controls, move them over the tabstrip client area, and make them visible when the corresponding tab is selected.

All client-coordinate properties use the scale mode of the parent form. To place a Frame control so it fits perfectly in the internal area, use the following code:

Frame1.Left = TabStrip1.ClientLeft
Frame1.Top = TabStrip1.ClientTop
Frame1.Width = TabStrip1.ClientWidth
Frame1.Height = TabStrip1.ClientHeight

To create the effect of placing a new tab and its associated container on top when the tab is selected: