TitleBackColor, TitleForeColor, TrailingForeColor Properties Example

The example changes the appearance of a MonthView control by resetting the TitleBackColor, TitleForeColor, and TrailingForeColor properties. To try the example, place a MonthView control on a form, and paste the code into the Declarations section of the code module. Run the project, and double-click the form to see the calendar change.

Private Sub Form_DblClick()
   With MonthView1
      .TitleBackColor = vbBlue
      .TitleForeColor = vbWhite
      .TrailingForeColor = vbRed
   End With
End Sub