Print Page | Close Window

COM Setting Font in Calendar

Printed From: Codejock Forums
Category: General
Forum Name: Articles and Tutorials
Forum Description: Articles and Tutorials
URL: http://forum.codejock.com/forum_posts.asp?TID=18086
Printed Date: 03 December 2024 at 2:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: COM Setting Font in Calendar
Posted By: SuperMario
Subject: COM Setting Font in Calendar
Date Posted: 21 March 2011 at 9:16am
Here is a small sample just for normal event in day view. As you can see you have control over almost all fonts int he calendar so you must set them all separately. Here is an example:

  Dim objThemeOfice2007 As CalendarThemeOffice2007
  Set objThemeOfice2007 = CalendarControl.Theme
  
  If objThemeOfice2007 Is Nothing Then Exit Sub
  
  objThemeOfice2007.BaseFont.SIZE = 14
  objThemeOfice2007.DayView.Day.Group.SingleDayEvent.Normal.Subject.Font.SIZE = 14
  objThemeOfice2007.DayView.Day.Group.SingleDayEvent.Normal.Body.Font.SIZE = 14
  objThemeOfice2007.DayView.Day.Group.SingleDayEvent.Normal.Location.Font.SIZE = 14



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