Baadal Help - Document

Best Software Development Application | Masked-Text-Box Control

Masked Text-Box Control


A Masked TextBox control provides a validation mechanism for user input on a Form. In addition to the basic properties of the TextBox Control, this Control has some special properties added in Baadal. For instance, if you want a TextBox to accept Telephone number in (999)999-9999 format, you can set masking in the Masked TextBox. This Control helps you add a masked text to distinguish between proper and improper user input.

 Masked Text Box Control Properties

Properties:

Association

AssociatedColumn

Associated with Database Table Field

AssociatedTable

Associated with the Database Table

Design

Alignment

Sets how text is aligned in a TextBox Control

AllowDuplicates

Gets or Sets a Boolean value (True, False), additionally, disallows the current value if the entry already exists in the database.

AllowNull

Gets or Sets a value indicating whether the null input has to be allowed or not.

AsciiOnly

Gets or Sets a value indicating whether the Masked TextBox Control accepts characters outside of the ASCII character set.

BackColor

Sets the background color of the Control

Enabled

Sets a value indicating whether the Control can respond to user interaction

Font

The Font Style properties of the text displayed by the Control

Name

Sets the font face name

Size

Sets the size of this Font measured in the units specified by the Unit property

Unit

Sets the unit of measure

Bold

Sets a value that indicates whether this Font is bold.

GdiCharSet

Sets a byte value that specifies the GDI character set

GdiVerticalFont

Sets a Boolean value that indicates whether this Font is derived from a GDI vertical font.

Italic

Sets a value that indicates whether this font has the italic style applied.

Strikeout

Sets a value that indicates whether this Font specifies a horizontal line

Underline

Sets a value that indicates whether this Font is underlined.

ForeColor

The foreground (Font color) color of the Control

FriendlyName

Gets or Sets a value indicating an alias name to the Control.

InputControlType

Changes the Control type to TextBox, Drop Down , Numeric TextBox etc

IsKeyField

Sets the Boolean values to True or False

Mask

Gets or Sets the input mask to use at runtime.

PasswordChar

The character used to mask characters of a password in a single-line TextBox Control

PromptChar

Gets or Sets the character used to represent the absence of user input in MaskedTextBox.

ReadOnly

Gets or Sets a value indicating whether the contents of the TextBox Control can be changed

TabIndex

The tab order of TextBox

Visible

A value indicating whether the Control is to display or not

Display

Name

The name of the Control

Text

The text associated with this Control

ToolTip

A small pop-up window that displays some information when you hover mouse on a Control

Location

Left

The distance, in pixels, between the left edge of the Label and the left edge of the Container

Top

The distance, in pixels, between the top edge of the Label and the top edge of the Container

Misc

DataType

Set the data type of the Database Table Field

Size

Height

Height of the TextBox in pixels

Width

Width of the TextBox in pixels

Web

BLeft

The distance, in pixels, between the left edge of the Label and the left edge of the Container

BTop

The distance, in pixels, between the top edge of the Label and the top edge of the Container

IsChildField

To differentiate parent and child controls.

Label

The label represents the name of Control used to display in the form