Calender control |
Post Reply |
Author | |
Deepak
Newbie Joined: 18 June 2007 Status: Offline Points: 7 |
Post Options
Thanks(0)
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..
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |