Kushal Tutorials - Document

Date and Time

The .NET Framework Date and Time Control in Kushal, enables users to enter date and time, and to display it in a specified format.

The Date and Time Control is an enhanced textbox Control specifically designed to accept a date. Users can type just {15 4 12} to set a date - {15th of April 2012}.



Properties:

Association

AssociatedColumn

Associated with Database Table Field

AssociatedTable

Associated with Database Table

Design

Alignment

Gets or Sets how text is aligned in a Textbox Control

AllowDuplicates

Gets or Sets Boolean values to True or False, additionally disallows the current value if the entry already exists in the database

AllowNull

Indicates whether the field can be saved with null input when the user enters data and saves the record

BackColor

Sets the Background color of the Control (Inherited from Control)

Enabled

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

Font

Font style property of the text displayed in 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

Foreground (Font color) color of the Control

IsKeyField

Gets or Sets the Boolean values to True or False. Additionally, checks if the associated field is the primary key

SelectAllOnFocus

Gets or Sets the text selected in the text box

TabIndex

Tab order of the text box

Visible

A value indicating whether the Control should be displayed or not

Display

Custom Format

Gets or Sets the date/time in the given format

Default Value

The text associated with this Control. When the form is loaded, the text box is set with a default value

Format

Gets or Sets the format of the date/time

Name

Name of the 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

Size

Height

Height of the Control in pixels

Width

Width of the Control in pixels

Validation

DoValidation

Gets or Sets a value indicating whether the value entered by the user will be checked before saving the form or not

MaxValue

Gets or Sets a Maximum Range of the Value if DoValidation is true

MinValue

Gets or Sets a Minimum Range of the Value if DoValidation is true

ValidationMessage

Display Message when validation fails