CalendarTitleBackColor

Applies to

DatePicker and EditMask controls

Description

The CalendarTitleBackColor property defines the color to be used for the background of the calendar's title.

Usage

This property does not work on the Windows 7/8.1/10 operating system.

In a painter

Select a color from the CalendarTitleBackColor drop-down list on the Calendar page in the Properties view.

In scripts

The CalendarTitleBackColor property takes a long (-2 to 16,777,215) that specifies the numerical value of the background color of the month or months in a calendar. The CalendarTitleBackColor value is a combination of values for the red, green, and blue components of the color.

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 example sets pale green as the background color for titles:

dp_1.CalendarTitleBackColor = RGB(128, 255, 128)