Print Page | Close Window

Calender control

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=7895
Printed Date: 23 November 2024 at 12:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Calender control
Posted By: Deepak
Subject: Calender control
Date Posted: 29 August 2007 at 4:54am
Hi in my VB application i am using calender control
i have written following code for recurrence in load event
 
 
 Set NewEvent = myCalender.DataProvider.CreateEvent
 NewEvent.Subject = "Testing"
 Set Recurrence = NewEvent.CreateRecurrence
 Recurrence.StartDate = dtpStartDate.Value
 Recurrence.EndDate = dtpEndDate.Value
 Recurrence.StartTime = "03:00"
 Recurrence.DurationMinutes = 30
 Recurrence.Options.RecurrenceType = xtpCalendarRecurrenceDaily
 Recurrence.Options.WeeklyIntervalWeeks = 1
 Recurrence.Options.WeeklyDayOfWeekMask = xtpCalendarDayMo_Fr
 NewEvent.UpdateRecurrence Recurrence
 myCalender.DataProvider.AddEvent NewEvent
 
 
it just hangs...
please tell me where i went wrong.
i dont want to load dates from xml.
 
is the problem is due to Provider..
 
 



Replies:
Posted By: sserge
Date Posted: 01 October 2007 at 7:12pm
The problem is that you've set .RecurrenceType = xtpCalendarRecurrenceDaily but trying to setup Weekly properties like .WeeklyIntervalWeeks, .WeeklyDayOfWeekMask...

Those properties should be of the same type (both daily, or weekly).

--
WBR,
Serge



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