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).
Example:
'First add an object named flb of type FormLib.
Sub Globals
End Sub
Sub App_Start
Form1.show
flb.New1("Form1",B4PObject(1))
flb.TextAlignment("TextBox1",flb.alCenter)
End Sub