Print Page | Close Window

Week Start

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=16968
Printed Date: 06 October 2024 at 10:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Week Start
Posted By: SHAN
Subject: Week Start
Date Posted: 17 July 2010 at 11:53am
Hi,
 
 How to Change Calendar Control  for First day of Week ? For Example: Work Week View  from Sunday to Thursday ...!
 Change week End Friday & Saturday.?
 Please Help
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows 7 Professional
Language: Visual Basic 6.0



Replies:
Posted By: dindo.lales
Date Posted: 01 August 2010 at 10:06pm
Sub ChangeFirstDayOfWeek ()
   objCalendar.Options.FirstDayOfTheWeek = 1 '1 = Sunday, 2 = Monday, 3 = Tuesday, 4 = Wednesday, etc...
   objCalendar.Options.WorkWeekMask = 31 'This is to define that work weekdays are Mondays through Thursdays. Note that Sunday = 1, Monday = 2, Tuesday = 4, Wednesday = 8, Thursday = 16, Friday = 32, Saturday = 64. Just add all numeric values of your work days and assign it to WorkWeekMask property of the CalendarOptions object
End Sub



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