Controls > Advanced Controls > Text Box > Text Box Format Properties
Text Box Format Properties
BackColor and ForeColor
Sets or gets the background color for the control. The ForeColor property sets or gets the foreground color for the control.
JScript
var ForeColor = TextBox.ForeColor();
TextBox.ForeColor(0xcolor)

var BackColor = TextBox.BackColor();
TextBox.BackColor(0xcolor)
VBscript
ForeColor = TextBox.ForeColor
TextBox.ForeColor = &Hcolor

BackColor = TextBox.BackColor
TextBox.BackColor = &Hcolor
Element
Description
color
Any 6-digit valid hexadecimal number representing an RGB color. For example, FFFFFF is the hexadecimal representation of white; 000000 is the hexadecimal representation of black.
FontSize
Sets or gets the font size of the text displayed in the control's text field.
JScript
TextBox.Font.Size = Size;
var Size = TextBox.Font.Size;
VBscript
TextBox.Font.Size = Size
Size = TextBox.Font.Size
Element
Description
Size
A value indicating the size of the font.
Multiline
Indicates whether a text box can have multiple lines of text. When true, use the Enter key to go to the next line. When false, the text will be displayed in a single line and using the Enter key will move the cursor out of the text box.
JScript
var bMode = TextBox.Multiline();
TextBox.Multiline(bMode);
VBscript
bMode = TextBox.Multiline
TextBox.Multiline = bMode
Element
Description
bMode
true—indicates that the text box can have multiple lines.
false—indicates that the text box cannot have multiple lines.
Was this helpful?