CalendarTrailingForeColor Property

       

Returns or sets a value that specifies the foreground color of trailing dates that are displayed in the dropdown calendar.

Syntax

object.CalendarTrailingForeColor [= color]

The CalendarTrailingForeColor property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
color A value or constant that determines the color of trailing dates — dates that belong to the previous or following months — as described in Settings.

Settings

The settings for color are:

Setting Description
RGB colors Colors specified by using the Color palette or by using the RGB or QBColor functions in code.
System default colors Colors specified by system color constants listed in the Visual Basic (VBRUN) object library in the Object Browser. The Windows operating environment substitutes the user's choices as specified in the Control Panel settings.

Remarks

Trailing dates are day numbers that are displayed which precede and follow day numbers of the currently selected month in the dropdown calendar. By default, trailing dates are displayed in vbWhite.

The CalendarTrailingForeColor property can be used with the CalendarBackColor, CalendarForeColor, CalendarTitleBackColor and CalendarTitleForeColor properties to customize the colors of the control.

The valid range for a normal RGB color is 0 to 16,777,215 (&HFFFFFF). The high byte of a number in this range equals 0; the lower 3 bytes, from least to most significant byte, determine the amount of red, green, and blue, respectively. The red, green, and blue components are each represented by a number between 0 and 255 (&HFF). If the high byte isn't 0, Visual Basic uses the system colors, as defined in the user's Control Panel settings and by constants listed in the Visual Basic (VBRUN) object library in the Object Browser.