
392 Chapter 8 • Windows Forms Components and Controls
date by default.To change the date before displaying the control, use the Value
property as follows:
'Change the date to the following day
dtpEffectiveDate.Value = _
DateAdd(Microsoft.VisualBasic.DateInterval.Day, 1, Date.Today)
Table 8.19 shows the other properties of the DateTimePicker control.
Table 8.19
DateTimePicker Properties
Property Description
AllowDrop Determines if the date-time picker will receive
drag-drop notifications
CalendarFont The font used to display the calendar
CalendarForeColor The color used to display text within a month
CalendarMonthBackground The background color displayed within ...