Applies to
DatePicker and EditMask controls
Description
The CalendarTrailingTextColor property specifies the color used for text for leading and trailing days in the calendar.
Usage
This property does not work on the Windows 7/8.1/10 operating system.
In a painter
Select the desired color from the TrailingTextColor drop-down list on the Calendar tab page of the Properties view.
In scripts
The CalendarTrailingTextColor property is a long indicating the color to be used for leading and trailing days in the calendar. These are days in months that are partly displayed in the calendar. In a calendar showing a single month, they are the last few days of the preceding month and the next few days of the following month. In a calendar showing the three months July to September, the leading days are the last few days of June and the trailing days are the first few days of October. The default color is the color defined for Disabled Text.
If you do not know the long value for the color, choose Design>Custom Colors to determine the red, green, and blue values and then call the RGB function to specify the color in a script.
The following line sets the trailing text color for the calendar in a DatePicker control to "Inactive Title Bar":
dp_1.CalendarTrailingTextColor = 134217731