This documentation is archived and is not being maintained.

Alignment Constant Changes in Visual Basic .NET

The following tables show the Visual Basic 6.0 Alignment constants and values and their Visual Basic .NET equivalents.

CheckBox and OptionButton Alignment Constants

Visual Basic 6.0Visual Basic .NET Equivalent
VbLeftJustify (0)System.Drawing.ContentAlignment.MiddleLeft
VbRightJustify (1)System.Drawing.ContentAlignment.MiddleRight

TextBox Alignment Constants

Visual Basic 6.0Visual Basic .NET Equivalent
VbLeftJustify (0)System.Windows.Forms.HorizontalAlignment.Left
VbRightJustify (1)System.Windows.Forms.HorizontalAlignment.Right
VbCenter (2)System.Windows.Forms.HorizontalAlignment.Center

Label Alignment Constants

Visual Basic 6.0Visual Basic .NET Equivalent
VbLeftJustify (0)System.Drawing.ContentAlignment.TopLeft
VbRightJustify (1)System.Drawing.ContentAlignment.TopRight
VbCenter (2)System.Drawing.ContentAlignment.TopCenter

See Also

Constant Changes in Visual Basic .NET | CheckBox Control Changes in Visual Basic .NET | OptionButton Control Changes in Visual Basic .NET | TextBox Control Changes in Visual Basic .NET | Label Control Changes in Visual Basic .NET | Constants and Enumerations

Show: