Applies To
CheckBox control, ComboBox control, CommandButton control, Image control, Label control, ListBox control, MultiPage control, OptionButton control, ScrollBar control, SpinButton control, TabStrip control, TextBox control, ToggleButton control, UserForm object.
Description
The distance between a control and the left or top edge of the form that contains it.
Syntax
object.Left [= Single]
object.Top [= Single]
The Left and Top property syntaxes have these parts:
Part
Description
object
Required. A valid object.
Single
Optional. A numeric expression specifying the coordinates of an object.
Settings
Setting the Left or Top property to 0 places the control's edge at the left or top edge of its container.
Remarks
For most systems, the recommended range of values for Left and Top is from -32,767 to +32,767. Other values may also work depending on your system configuration. For a ComboBox, values of Left and Top apply to the text portion of the control, not to the list portion. When you move or size a control, its new Left setting is automatically entered in the property sheet. When you print a form, the control's horizontal or vertical location is determined by its Left or Top setting.
See Also
Height, Width properties.
Example
See the ClientHeight, ClientLeft, ClientTop, ClientWidth properties example.