Comparison with DateTimePicker and MonthCalendar
SftDate/NET covers all functions of the Windows Forms DateTimePicker and MonthCalendar controls. It is not a drop-in replacement: its properties, methods, events and enumerations have their own names and types, and its calendar settings are grouped in the CalendarClass object. This table shows where each function of the Windows Forms controls is found.
| DateTimePicker / MonthCalendar | SftDate/NET |
|---|
| , Checked, ShowCheckBox | SftDate.Value (a nullable DateTime), SftDate.ShowCheckBox, SftDate.Checked, and SftDate.AllowEmpty for empty fields |
| , , MinimumDateTime, MaximumDateTime | SftDate.MinDate, SftDate.MaxDate, SftCalendar.MinDate, SftCalendar.MaxDate, within the years 1 to 9999 and the culture's calendar |
| , CustomFormat, FormatChanged | SftDate.Format (DateFormatEnum), SftDate.CustomFormat (a .NET custom format string), |
| ShowUpDown | SftDate.Buttons (FieldButtonsEnum) |
| DropDownAlign | SftDate.DropDownAlignment (DropDownAlignmentEnum) |
| CalendarFont, CalendarForeColor, CalendarMonthBackground, CalendarTitleBackColor, CalendarTitleForeColor, CalendarTrailingForeColor; TitleBackColor, TitleForeColor, TrailingForeColor | The fonts and colors of the CalendarClass object (SftDate.Calendar, SftCalendar.Calendar) |
| DropDown, CloseUp, | SftDate.DropDownOpening, SftDate.DropDownOpened, SftDate.DropDownClosed, SftDate.ValueChanged |
| PreferredHeight | SftDate.AutoSize, SftDate.PreferredHeight |
| RightToLeftLayout | RightToLeft mirrors the layout |
| SftDate.Text (the formatted value; setting it parses the text) |
| BoldedDates, AnnuallyBoldedDates, MonthlyBoldedDates and their , Remove, RemoveAll and Update methods | CalendarClass.SpecialDates, with SpecialDateClass.Recurrence and SpecialDateClass.Bold |
| CalendarDimensions, SetCalendarDimensions, SingleMonthSize | CalendarClass.MonthsAcross, CalendarClass.MonthsDown, SftCalendar.SingleMonthSize |
| FirstDayOfWeek | CalendarClass.FirstDayOfWeek |
| MaxSelectionCount, SelectionStart, SelectionEnd, SelectionRange, SetSelectionRange | SftCalendar.SelectionMode, SftCalendar.RangeStart, SftCalendar.RangeEnd, SftCalendar.SelectRange, CalendarClass.MaxRangeDays |
| SetDate | SftCalendar.Value |
| ScrollChange | CalendarClass.ScrollMonths |
| ShowToday, ShowTodayCircle, TodayDate, TodayDateSet | CalendarClass.ShowTodayButton, CalendarClass.HighlightToday, CalendarClass.TodayDate (null follows the system date) |
| ShowWeekNumbers | CalendarClass.ShowWeekNumbers, CalendarClass.WeekNumberRule |
| GetDisplayRange | SftCalendar.FirstDisplayedDate, SftCalendar.LastDisplayedDate |
| SftCalendar.HitTest (CalendarHitTestInfo), SftDate.HitTest |
| DateChanged, DateSelected | SftCalendar.ValueChanged, SftCalendar.RangeChanged, SftCalendar.DateActivated |
Beyond DateTimePicker and MonthCalendar
SftDate/NET adds, among others: any culture and calendar system independent of the system settings, empty fields with a placeholder text and a button, date ranges in a field, a time list or clock face in the dropdown, free-form typing with application-defined parsing, validation events, the year, decade and century views, special dates with colors, images and tooltips, a day formatting event, disabled days, dark mode, high contrast, per-monitor DPI and screen reader support for the dropdown.