Print Page | Close Window

Change Theme for VB/Access

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=23898
Printed Date: 19 April 2024 at 7:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change Theme for VB/Access
Posted By: rmcgaffic
Subject: Change Theme for VB/Access
Date Posted: 27 August 2019 at 2:31pm
I have recently purchased Calendar ActiveX version 19. 

Here is my code for the OnLoad event: 

Option Compare Database
  
Public Property Theme() As Object
    
Private Sub Form_Load()
  Me.CalendarControl0.SetTheme CalendarThemeOffice2016
End Sub

The Public statement is erroring with the message:
Expected Get or Let or Set

This all the documentation I can find in the help and the sample is ancient.

Can anyone just code revisions to all the calendar to display using the Office 2016 themes




Replies:
Posted By: rmcgaffic
Date Posted: 29 August 2019 at 11:20am
I'm going to answer my own question.

Setting the theme by VB code is not necessary.  

When using this control with MS Access 2016, click on the control's Other tab, and select the combo box for Visual Theme. 

The drop down list shows xtpCalendarTheme2016.

When you select this option, you can not save it. 

The property value reverts back to xtpCalendarTheme2013.

So version 19 of the Calendar Control unfortunately does not seem to be updated with Office 2016 Themes. 

Any guess when this might happen?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net