The Microsoft Windows Common Controls-2 (MSCOMCT2.OCX) include the date and time picker (DTPicker) and the month calendar (MonthView) ActiveX controls, which many applications written using Visual Basic 6 and Office VBA use. MSCOMCT2.OCX exists only as a 32-bit control: it cannot be used in 64-bit applications, including 64-bit Office.
SftDate/OCX covers the functions of both controls with its date field control (SftDate) and month calendar control (SftCalendar), as 32-bit and 64-bit controls. It is not a drop-in replacement: its properties, methods and events have their own names, and the settings of the dropdown calendar are defined using the same SftDateCalendar object as the settings of a month calendar control. This table shows where each function of the Microsoft controls is found.
| DTPicker | SftDate/OCX (SftDate) |
|---|---|
| Value | Value, a Date or Null |
| CheckBox (Value is Null while the check box is cleared) | ShowCheckBox and Checked; AllowEmpty for empty fields without a check box, with PlaceholderText and ShowClearButton |
| MinDate, MaxDate | MinDate, MaxDate, within the years 100 to 9999 and in the culture's calendar system |
| Format, CustomFormat | Format, CustomFormat (see Formats) |
| Callback fields (X in CustomFormat) and their events | No callback fields; the TextParsing event parses text typed in free-form editing, the KeyDown event handles keys |
| UpDown | Buttons, which also offers both the dropdown and the up/down buttons, or none |
| Change | ValueChanged, preceded by ValueValidating for changes the user makes, which can refuse or change the value |
| DropDown, CloseUp | DropDownOpening, DropDownOpened, DropDownClosed; OpenDropDown, CloseDropDown, DroppedDown |
| CalendarBackColor, CalendarForeColor, CalendarTitleBackColor, CalendarTitleForeColor | Calendar.BackColor and the other 15 colors of the calendar, and the field's own BackColor, ForeColor and other colors |
| MonthView | SftDate/OCX (SftCalendar) |
|---|---|
| Value | Value, a Date or Null |
| MultiSelect, MaxSelCount, SelStart, SelEnd | SelectionMode, MaxRangeDays (no limit by default), RangeStart, RangeEnd, SetRange |
| MonthColumns, MonthRows | MonthsAcross, MonthsDown (up to 12 each) |
| StartOfWeek | FirstDayOfWeek |
| ShowWeekNumbers | ShowWeekNumbers, WeekNumberRule |
| ShowToday | ShowTodayButton, HighlightToday, TodayDate |
| GetDayBold event | Special dates (SpecialDates) with recurrence, bold text, colors, pictures and tooltips, and the DayFormatting event |
| DateClick, DateDblClick | DateActivated, ValueChanged, MouseDblClk with HitTest |
| MonthBackColor, TitleBackColor, TitleForeColor, TrailingForeColor | BackColor, TitleBackColor, TitleForeColor, TrailingForeColor and the other colors of the calendar |