1 of 4
http://www.functionx.com/vcsharp/controls/datepicker.htm
One of the advantages of the Date and Time Picker control is that it allows the
user to select a time or a date value instead of typing it. This tremendously
reduces the likelihood of mistakes.
12-04-2006 18:04
2 of 4
http://www.functionx.com/vcsharp/controls/datepicker.htm
When the check box is checked, the user can change the displayed date.
When the check box is unchecked, the control is displayed and the user
cannot change the date. The user must first put a check mark in the check
box in order to be able to change the date.
If the control displays a spin button, the object is divided in different sections
that can each be changed individually. To change either the day, the month,
or the year, the user must click the desired section and use either the arrows
of the button or the arrow keys on the keyboard to increase or decrease the
selected value.
12-04-2006 18:04
3 of 4
http://www.functionx.com/vcsharp/controls/datepicker.htm
control.
Custom Formats
If you set the Format property to Long, the date displays using the Long Date
formats of Control Panel. If you set the Format to Short, the control uses the
Short Date value of Control Panel. If you want to customize the way the date
is displayed, set the Format property to Custom. After setting the Format to
Custom, use the CustomFormat property to create the desired format. The
format is created by combining the following characters:
Format Used For Description
d
Days
dd
Days
ddd
Weekdays
dddd
Weekdays
Months
MM
Months
MMM
Months
MMMM
Months
yy
Years
yyyy
Years
This means that you should be reluctant to let the users type whatever they
want. The less they type, the less checking you need to do.
Drop Down
If the Format property of the control is set to Date and if the ShowUpDown
property is set to False, when the user clicks the arrow of the combo box to
12-04-2006 18:04
4 of 4
http://www.functionx.com/vcsharp/controls/datepicker.htm
Close Up
On the other hand, if the user clicks the arrow to retract the calendar, an
CloseUp event fires. Both events are of EventArgs type.
Home
12-04-2006 18:04