Visual Basic: Windows Controls

Orientation Property (Slider Control)

See Also    Example    Applies To

Sets a value that determines whether the Slider control is oriented horizontally or vertically.

Syntax

object.Orientation = number

The Orientation property syntax has these parts:

Part Description
object An object expression that evaluates to a Slider control.
number A constant or value specifying the orientation, as described in Settings.

Settings

The settings for number are:

Constant Value Description
sldHorizontal 0 (Default) Horizontal. The slider moves horizontally and tick marks can be placed on either the top or bottom, both, or neither.
sldVertical 1 Vertical. The slider moves vertically and tick marks can be placed on either the left or right sides, both, or neither.