Toll Free: (877) 723-1442 U.S. and Canada
Support
ActiveX / COM
Visual C++ / MFC
Customer Spotlight
Corporate Partners
Contact Sales

Call center available M-F 9:00 - 6:00 US Eastern Time.

U.S. and Canada
(877) 723-1442

International
(517) 625-5729

Email

Applying the Office 2007 Theme

Author: Mike Palmatier
Posted: May 3, 2006
Environment: Visual Basic 6.0

Applying the Office 2007 theme to the Calendar can be accomplished with only a few lines of code. You also have the option to change the base color used in the theme. By default the color will be the same color blue as used in Office 2007.

Start by instantiating a CalendarThemeOffice2007 object.

   'Create a new Office 2007 theme object

   Dim customOffice2007 As New CalendarThemeOffice2007

Next you can optionally define the base color used in the Office 2007 theme.

   'Set the base color for the Office 2007 theme to use

   'This will give a default "gray" base color

   customOffice2007.BaseColor = RGB(22, 22, 22)

Now apply the new Office 2007 theme to the Calendar.

   'Apply the Office 2007 theme to the Calendar

   CalendarControl.SetTheme customOffice2007

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Other products and/or company names may be trademarks or registered trademarks of their respective owners.