TextField Object Properties

When you want to accept one line of information from a user, add a one-line Text Field to your form.

Property

Function

Direction

Read-only. Specifies the value of the Direction property of the attribute associated with the TextField object.

Id

Read-only. By default, automatically generated. Id="TextField1" for the first inserted TextField, Id="TextField2" for the second, and so on.

Length

Read-only. Specifies the Length of the attribute associated with the TextField object.

Name

Read-only. Specifies the name of the attribute associated with the TextField.

Primitive

Read-only. Specifies the value of the Primitive property of the attribute associated with the TextField object.

BackgroundColor

Specifies a background color for the object. Select a color from one of the tabs in the drop-down list. Note that you can specify a custom color. If you change this value you can revert to the default value specified for the parent object by right clicking the property and selecting Reset from the context menu.

BorderStyle

Specifies an attributes to control the border of the container that surrounds the object. Options are None, FixedSingle, or Fixed3D or UnderBar.

When the property is set to None, the selected control appears without a border.

When the property is set to FixedSingle, the selected control has a single line border.

When the property is set to Fixed3D, the border of the selected control has a three-dimensional appearance.

When the property is set to UnderBar, only the bottom line appears for the selected control. The other three border lines do not appear.

ControlType

Specifies TextField as the type of object added to the form. To change the ControlType, choose from the list of available types.

Font

Specifies font attributes that are applied directly to the text appearing in the object. If you change this value, you can restore the default value specified for the parent object by right-clicking the property and clicking Reset on the context menu.

ForegroundColor

Specifies a foreground color for the object. Select a color from one of the tabs in the drop-down list. Note that you can specify a custom color. If you change this value, you can restore to the default value specified for the parent object by right-clicking the property and clicking Reset on the context menu.

Location

Specifies the point in pixels that represents the upper-left corner of the object relative to the upper-left corner of its container as an X and Y location.

ReadOnly

Specifies whether the content of the object is read-only.

Size

Specifies the size of the object representing the height and width in pixels.

TabIndex

Specifies a number value that indicates the tab order for the object.

TextAlign

Specifies whether the text in the object is left-aligned, right-aligned, center-aligned, or justified.

ToolTip

Specifies the information to be displayed about the item at runtime. This is optional and appears when the user hovers the mouse over the control in Winforms. To view the tooltip in the Presentation Client, you have to hover on the control and press the F1 key.

Value

Specifies the value to be displayed in the field. This value is returned to the application when a transaction occurs at runtime.

Visible

Specifies if the object is visible to the user at runtime. Options are True (default) and False.