Previous  Next

The TextAlignment property changes the text alignment of a TextBox or a Label.
Syntax: TextAlignment (Control As Control, Alignment As Int32)
Alignment - One of the following properties: alLeft, alCenter, alRight.

Only multiline TextBoxes support text alignment. Changing the text alignment of a single line TextBox will change it to multiline (without adding the scroll bars).

'First add an object named flb of type FormLib.
Sub Globals

End Sub

Sub App_Start
End Sub