HeaderPane
Main
Hide
Share Link
Print

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 / MonthCalendarSftDate/NET
Value, Checked, ShowCheckBoxSftDate.Value (a nullable DateTime), SftDate.ShowCheckBox, SftDate.Checked, and SftDate.AllowEmpty for empty fields
MinDate, MaxDate, MinimumDateTime, MaximumDateTimeSftDate.MinDate, SftDate.MaxDate, SftCalendar.MinDate, SftCalendar.MaxDate, within the years 1 to 9999 and the culture's calendar
Format, CustomFormat, FormatChangedSftDate.Format (DateFormatEnum), SftDate.CustomFormat (a .NET custom format string), PropertyChanged
ShowUpDownSftDate.Buttons (FieldButtonsEnum)
DropDownAlignSftDate.DropDownAlignment (DropDownAlignmentEnum)
CalendarFont, CalendarForeColor, CalendarMonthBackground, CalendarTitleBackColor, CalendarTitleForeColor, CalendarTrailingForeColor; TitleBackColor, TitleForeColor, TrailingForeColorThe fonts and colors of the CalendarClass object (SftDate.Calendar, SftCalendar.Calendar)
DropDown, CloseUp, ValueChangedSftDate.DropDownOpening, SftDate.DropDownOpened, SftDate.DropDownClosed, SftDate.ValueChanged
PreferredHeightSftDate.AutoSize, SftDate.PreferredHeight
RightToLeftLayoutRightToLeft mirrors the layout
TextSftDate.Text (the formatted value; setting it parses the text)
BoldedDates, AnnuallyBoldedDates, MonthlyBoldedDates and their Add, Remove, RemoveAll and Update methodsCalendarClass.SpecialDates, with SpecialDateClass.Recurrence and SpecialDateClass.Bold
CalendarDimensions, SetCalendarDimensions, SingleMonthSizeCalendarClass.MonthsAcross, CalendarClass.MonthsDown, SftCalendar.SingleMonthSize
FirstDayOfWeekCalendarClass.FirstDayOfWeek
MaxSelectionCount, SelectionStart, SelectionEnd, SelectionRange, SetSelectionRangeSftCalendar.SelectionMode, SftCalendar.RangeStart, SftCalendar.RangeEnd, SftCalendar.SelectRange, CalendarClass.MaxRangeDays
SetDateSftCalendar.Value
ScrollChangeCalendarClass.ScrollMonths
ShowToday, ShowTodayCircle, TodayDate, TodayDateSetCalendarClass.ShowTodayButton, CalendarClass.HighlightToday, CalendarClass.TodayDate (null follows the system date)
ShowWeekNumbersCalendarClass.ShowWeekNumbers, CalendarClass.WeekNumberRule
GetDisplayRangeSftCalendar.FirstDisplayedDate, SftCalendar.LastDisplayedDate
HitTestSftCalendar.HitTest (CalendarHitTestInfo), SftDate.HitTest
DateChanged, DateSelectedSftCalendar.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 Clear 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.