Export (0) Print
Expand All
A
Expand Minimize
This topic has not yet been rated - Rate this topic

Visual Basic: Windows Controls

Visual Studio 6.0

Alignment Property (UpDown Control)

See Also   Example   Applies To

Returns or sets a value that determines the alignment of the UpDown control with its buddy control.

Syntax

object.Alignment [= value]

The Alignment property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A value that specifies the alignment of the UpDown control with its buddy control, as described in Settings.

Settings

The settings for value are:

Constant Value Description
cc2alignmentLeft 0 The UpDown control is aligned to the left of its buddy control.
cc2alignmentRight 1 (Default). The UpDown control is aligned to the right of its buddy control.

Remarks

Use the Alignment property to specify the positioning of the UpDown control next to its buddy control. By default, the UpDown control is displayed on the right side of the buddy control.

Setting the Alignment property automatically realigns the UpDown control with its buddy control. The buddy control's width is reduced by the width of the UpDown control, so that the overall width of the two controls is the same as the buddy control was alone.

Note   The Alignment property ignores the Orientation property when aligning to the UpDown control.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.